lxsession-0.5.5^20230917gite0fffa66-4.fc41
List of Defects
Error: COMPILER_WARNING (CWE-477): [#def1]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘gsd_clipboard_manager_class_init’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c:142:9: warning[-Wdeprecated-declarations]: ‘g_type_class_add_private’ is deprecated
# 142 | g_type_class_add_private (klass, sizeof (GsdClipboardManagerPrivate));
# | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void g_type_class_add_private (gpointer g_class,
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 140| object_class->finalize = gsd_clipboard_manager_finalize;
# 141|
# 142|-> g_type_class_add_private (klass, sizeof (GsdClipboardManagerPrivate));
# 143| }
# 144|
Error: COMPILER_WARNING: [#def2]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘gsd_clipboard_manager_init’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c:150:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 150 | GsdClipboardManagerPrivate);
# | ^ ~~~~~~~~~~~~~~~~~~~~~~~~
# 148| manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager,
# 149| GSD_TYPE_CLIPBOARD_MANAGER,
# 150|-> GsdClipboardManagerPrivate);
# 151|
# 152| manager->priv->display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
Error: CLANG_WARNING: [#def3]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c:454:24: warning[core.DivideZero]: Division by zero
# 452| rdata->offset += length;
# 453|
# 454|-> items = length / clipboard_bytes_per_item (rdata->data->format);
# 455| XChangeProperty (manager->priv->display, rdata->requestor,
# 456| rdata->property, rdata->data->type,
Error: CLANG_WARNING: [#def4]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c:603:39: warning[core.DivideZero]: Division by zero
# 601|
# 602| rdata->data = target_data_ref (tdata);
# 603|-> items = tdata->length / clipboard_bytes_per_item (tdata->format);
# 604| if (tdata->length <= SELECTION_MAX_SIZE)
# 605| XChangeProperty (manager->priv->display, rdata->requestor,
Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c: scope_hint: In function ‘convert_clipboard’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/clipboard.c:691:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘conversions’
# 689| g_slist_foreach (conversions, (GFunc) convert_clipboard_target, manager);
# 690|
# 691|-> if (conversions->next == NULL &&
# 692| ((IncrConversion *) conversions->data)->property == None) {
# 693| finish_selection_request (manager, xev, False);
Error: COMPILER_WARNING (CWE-563): [#def6]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/main.c:63:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
# 63 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 61| LXSESSION_MAIN_NUM_PROPERTIES
# 62| };
# 63|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# 64| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
# 65| #define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
Error: COMPILER_WARNING (CWE-477): [#def7]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxclipboard/main.vala:28:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
# 28 | GLib.Application app = new GLib.Application (
# | ^
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-2.0/gtk/gtk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
# 1545 | G_APPLICATION_FLAGS_NONE GIO_DEPRECATED_ENUMERATOR_IN_2_74_FOR(G_APPLICATION_DEFAULT_FLAGS),
# | ^~~~~~~~~~~~~~~~~~~~~~~~
# 26| {
# 27| Gtk.init (ref args);
# 28|-> GLib.Application app = new GLib.Application (
# 29| "org.lxde.lxclipboard",
# 30| GLib.ApplicationFlags.FLAGS_NONE);
Error: COMPILER_WARNING (CWE-477): [#def8]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘on_completed’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:97:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete’ is deprecated
/usr/include/glib-2.0/gio/gio.h:141: included_from: Included from here.
/usr/include/polkit-1/polkit/polkitactiondescription.h:30: included_from: Included from here.
/usr/include/polkit-1/polkit/polkit.h:30: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagentlistener.h:29: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagent.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:101:21: note: declared here
# 95| return;
# 96| }
# 97|-> g_simple_async_result_complete(data->result);
# 98| dlg_data_free(data);
# 99| }
Error: COMPILER_WARNING (CWE-563): [#def9]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:187:29: warning[-Wunused-but-set-variable]: variable ‘detail’ set but not used
# 187 | GtkWidget *icon, *msg, *detail, *id_hbox;
# | ^~~~~~
# 185| {
# 186| GtkBuilder* b = gtk_builder_new();
# 187|-> GtkWidget *icon, *msg, *detail, *id_hbox;
# 188| GList* l;
# 189| DlgData* data = g_slice_new0(DlgData);
Error: COMPILER_WARNING (CWE-477): [#def10]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘initiate_authentication’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:198:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_new’ is deprecated: Use 'g_task_new' instead
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:48:21: note: declared here
# 196| #endif
# 197| data->listener = (LXPolkitListener*)listener;
# 198|-> data->result = g_simple_async_result_new(G_OBJECT(listener), callback, user_data, initiate_authentication);
# 199|
# 200| data->action_id = g_strdup(action_id);
Error: CLANG_WARNING: [#def11]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:211:5: warning[deadcode.DeadStores]: Value stored to 'detail' is never read
# 209| icon = (GtkWidget*)gtk_builder_get_object(b, "icon");
# 210| msg = (GtkWidget*)gtk_builder_get_object(b, "msg");
# 211|-> detail = (GtkWidget*)gtk_builder_get_object(b, "detail");
# 212| id_hbox = (GtkWidget*)gtk_builder_get_object(b, "id_hbox");
# 213| data->id = (GtkWidget*)gtk_builder_get_object(b, "id");
Error: COMPILER_WARNING (CWE-563): [#def12]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:242:19: warning[-Wunused-variable]: unused variable ‘name’
# 242 | char* name;
# | ^~~~
# 240| {
# 241| PolkitIdentity* id = (PolkitIdentity*)l->data;
# 242|-> char* name;
# 243| if(POLKIT_IS_UNIX_USER(id))
# 244| {
Error: COMPILER_WARNING (CWE-477): [#def13]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:272:9: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_complete_in_idle’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:103:21: note: declared here
# 270| DEBUG("no identities list, is this an error?");
# 271| gtk_widget_hide(id_hbox);
# 272|-> g_simple_async_result_complete_in_idle(data->result);
# 273| dlg_data_free(data);
# 274| return;
Error: COMPILER_WARNING (CWE-563): [#def14]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:283:23: warning[-Wunused-variable]: unused variable ‘self’
# 283 | LXPolkitListener* self = (LXPolkitListener*)listener;
# | ^~~~
# 281| GError **error)
# 282| {
# 283|-> LXPolkitListener* self = (LXPolkitListener*)listener;
# 284| DEBUG("init_authentication_finish");
# 285| return !g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(res), error);
Error: COMPILER_WARNING (CWE-477): [#def15]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘initiate_authentication_finish’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:285:5: warning[-Wdeprecated-declarations]: ‘g_simple_async_result_propagate_error’ is deprecated
/usr/include/glib-2.0/gio/gsimpleasyncresult.h:116:21: note: declared here
# 283| LXPolkitListener* self = (LXPolkitListener*)listener;
# 284| DEBUG("init_authentication_finish");
# 285|-> return !g_simple_async_result_propagate_error(G_SIMPLE_ASYNC_RESULT(res), error);
# 286| }
# 287|
Error: COMPILER_WARNING (CWE-563): [#def16]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c: scope_hint: In function ‘lxpolkit_listener_finalize’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:303:23: warning[-Wunused-but-set-variable]: variable ‘self’ set but not used
# 303 | LXPolkitListener *self;
# | ^~~~
# 301| static void lxpolkit_listener_finalize(GObject *object)
# 302| {
# 303|-> LXPolkitListener *self;
# 304|
# 305| g_return_if_fail(object != NULL);
Error: CLANG_WARNING: [#def17]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit-listener.c:308:5: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 306| g_return_if_fail(IS_LXPOLKIT_LISTENER(object));
# 307|
# 308|-> self = LXPOLKIT_LISTENER(object);
# 309|
# 310| G_OBJECT_CLASS(lxpolkit_listener_parent_class)->finalize(object);
Error: COMPILER_WARNING (CWE-1023): [#def18]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_OTHER’ not handled in switch
# 39| GTK_BUTTONS_OK, "%s", msg);
# 40| const char* title = NULL;
# 41|-> switch(type)
# 42| {
# 43| case GTK_MESSAGE_ERROR:
Error: COMPILER_WARNING (CWE-1023): [#def19]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_QUESTION’ not handled in switch
# 39| GTK_BUTTONS_OK, "%s", msg);
# 40| const char* title = NULL;
# 41|-> switch(type)
# 42| {
# 43| case GTK_MESSAGE_ERROR:
Error: COMPILER_WARNING (CWE-1023): [#def20]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c: scope_hint: In function ‘show_msg’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c:41:5: warning[-Wswitch]: enumeration value ‘GTK_MESSAGE_WARNING’ not handled in switch
# 41 | switch(type)
# | ^~~~~~
# 39| GTK_BUTTONS_OK, "%s", msg);
# 40| const char* title = NULL;
# 41|-> switch(type)
# 42| {
# 43| case GTK_MESSAGE_ERROR:
Error: COMPILER_WARNING (CWE-477): [#def21]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c: scope_hint: In function ‘policykit_agent_init’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/lxpolkit.c:69:5: warning[-Wdeprecated-declarations]: ‘polkit_agent_register_listener’ is deprecated: Use polkit_agent_listener_register instead
# 69 | if(!polkit_agent_register_listener(listener, session, NULL, &err))
# | ^~
/usr/include/polkit-1/polkitagent/polkitagent.h:32: included_from: Included from here.
/usr/include/polkit-1/polkitagent/polkitagentlistener.h:112:11: note: declared here
# 112 | gboolean polkit_agent_register_listener (PolkitAgentListener *listener,
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 67| return 1;
# 68| }
# 69|-> if(!polkit_agent_register_listener(listener, session, NULL, &err))
# 70| {
# 71| /* show error msg */
Error: COMPILER_WARNING (CWE-563): [#def22]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/main.c:65:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
# 65 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 63| LXSESSION_MAIN_NUM_PROPERTIES
# 64| };
# 65|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# 66| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
# 67| #define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
Error: COMPILER_WARNING (CWE-477): [#def23]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxpolkit/main.vala:33:2: warning[-Wdeprecated-declarations]: ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead
/usr/include/glib-2.0/gio/giotypes.h:30: included_from: Included from here.
/usr/include/glib-2.0/gio/gio.h:28: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdk.h:32: included_from: Included from here.
/usr/include/gtk-2.0/gtk/gtk.h:32: included_from: Included from here.
/usr/include/glib-2.0/gio/gioenums.h:1545:3: note: declared here
# 31|
# 32| Gtk.init (ref args);
# 33|-> GLib.Application app = new GLib.Application (
# 34| "org.lxde.lxpolkit",
# 35| GLib.ApplicationFlags.FLAGS_NONE);
Error: CPPCHECK_WARNING: [#def24]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def25]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.c:61:20: warning[-Wunused-variable]: ‘lxsession_db_default_apps_properties’ defined but not used
# 61 | static GParamSpec* lxsession_db_default_apps_properties[LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 59| LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES
# 60| };
# 61|-> static GParamSpec* lxsession_db_default_apps_properties[LXSESSION_DB_DEFAULT_APPS_NUM_PROPERTIES];
# 62| #define _g_free0(var) (var = (g_free (var), NULL))
# 63| #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
Error: CLANG_WARNING: [#def26]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:20:2: warning[deadcode.DeadStores]: Value stored to '_data_' is never read
# 18| namespace Lxsession
# 19| {
# 20|-> public class DBDefaultApps: GLib.Object
# 21| {
# 22| public List<string> webbrowser_installed = new List<string> ();
Error: CLANG_WARNING: [#def27]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:229:2: warning[deadcode.DeadStores]: Value stored to '_default_install_size_' is never read
# 227| public void update_installed ()
# 228| {
# 229|-> string[] default_install = null;
# 230|
# 231| default_install = MimeFoldersInstalledGet;
Error: CLANG_WARNING: [#def28]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:231:2: warning[deadcode.DeadStores]: Value stored to '_default_install_size_' is never read
# 229| string[] default_install = null;
# 230|
# 231|-> default_install = MimeFoldersInstalledGet;
# 232|
# 233| if (default_install != null)
Error: CLANG_WARNING: [#def29]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:233:2: warning[deadcode.DeadStores]: Value stored to '_tmp2__length1' is never read
# 231| default_install = MimeFoldersInstalledGet;
# 232|
# 233|-> if (default_install != null)
# 234| {
# 235| foreach (string folder in default_install)
Error: CLANG_WARNING: [#def30]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:249:2: warning[deadcode.DeadStores]: Value stored to '_default_available_size_' is never read
# 247| public void update_available ()
# 248| {
# 249|-> string[] default_available = null;
# 250|
# 251| default_available = MimeFoldersAvailableGet;
Error: CLANG_WARNING: [#def31]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:251:2: warning[deadcode.DeadStores]: Value stored to '_default_available_size_' is never read
# 249| string[] default_available = null;
# 250|
# 251|-> default_available = MimeFoldersAvailableGet;
# 252|
# 253| if (default_available != null)
Error: CLANG_WARNING: [#def32]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:253:2: warning[deadcode.DeadStores]: Value stored to '_tmp2__length1' is never read
# 251| default_available = MimeFoldersAvailableGet;
# 252|
# 253|-> if (default_available != null)
# 254| {
# 255| foreach (string folder in default_available)
Error: CLANG_WARNING: [#def33]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/desktop-files-backend.vala:400:2: warning[deadcode.DeadStores]: Value stored to '_tmp_value_size_' is never read
# 398| /* Not a available desktop file, just pass */
# 399| }
# 400|-> string[] tmp_value = tmp_string.split_set(" ",0);
# 401| return tmp_value[0];
# 402| }
Error: COMPILER_WARNING (CWE-563): [#def34]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/main.c:71:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
# 71 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 69| LXSESSION_MAIN_NUM_PROPERTIES
# 70| };
# 71|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# 72| #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
# 73| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: CLANG_WARNING: [#def35]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-db/main.vala:24:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 22| DBDefaultApps global_db;
# 23|
# 24|-> public class Main: GLib.Object
# 25| {
# 26| //static string settings = "";
Error: CPPCHECK_WARNING: [#def36]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/autostart.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def37]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/autostart.vala:296:3: warning[deadcode.DeadStores]: Value stored to '_system_config_dirs_size_' is never read
# 294| else
# 295| {
# 296|-> string[] system_config_dirs = Environment.get_system_config_dirs ();
# 297| string config_system_location = null;
# 298| string path_system_config_file = null;
Error: COMPILER_WARNING (CWE-843): [#def38]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/autostart.vala: scope_hint: In function ‘ldefault_apps_get_config_path’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/autostart.vala:296:19: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar * const*’ {aka ‘const char * const*’}
# 296 | string[] system_config_dirs = Environment.get_system_config_dirs ();
# | ^
# 294| else
# 295| {
# 296|-> string[] system_config_dirs = Environment.get_system_config_dirs ();
# 297| string config_system_location = null;
# 298| string path_system_config_file = null;
Error: CPPCHECK_WARNING: [#def39]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def40]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:172:2: warning[deadcode.DeadStores]: Value stored to '_combobox_list_size_' is never read
# 170| button.clicked.connect(() => {
# 171| string[] combobox_list;
# 172|-> combobox_list = get_mime_list(kf, item, "installed");
# 173| string default_path = "";
# 174| string default_exec = "";
Error: CLANG_WARNING: [#def41]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:176:5: warning[deadcode.DeadStores]: Value stored to '_tmp6_' is never read
# 174| string default_exec = "";
# 175|
# 176|-> for (int b = 0 ; b < combobox_list.length ; b++)
# 177| {
# 178| string item_list = combobox_list[b];
Error: CLANG_WARNING: [#def42]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:178:5: warning[deadcode.DeadStores]: Value stored to '_tmp7__length1' is never read
# 176| for (int b = 0 ; b < combobox_list.length ; b++)
# 177| {
# 178|-> string item_list = combobox_list[b];
# 179| ComboItemObject combo_item = new ComboItemObject (item_list);
# 180| if (item == combo_item.exec)
Error: CLANG_WARNING: [#def43]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:203:9: warning[deadcode.DeadStores]: Value stored to '_list_size_' is never read
# 201| if (generic_item != null)
# 202| {
# 203|-> list = get_mime_list(kf, generic_item, "available");
# 204| }
# 205| else
Error: CLANG_WARNING: [#def44]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:207:9: warning[deadcode.DeadStores]: Value stored to '_list_size_' is never read
# 205| else
# 206| {
# 207|-> list = get_mime_list(kf, item, "available");
# 208| }
# 209|
Error: CLANG_WARNING: [#def45]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:210:11: warning[deadcode.DeadStores]: Value stored to '_tmp67_' is never read
# 208| }
# 209|
# 210|-> for (int c = 0 ; c < list.length ; c++)
# 211| {
# 212| string item_list = list[c];
Error: CLANG_WARNING: [#def46]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:212:11: warning[deadcode.DeadStores]: Value stored to '_tmp68__length1' is never read
# 210| for (int c = 0 ; c < list.length ; c++)
# 211| {
# 212|-> string item_list = list[c];
# 213| ComboItemObject combo_item = new ComboItemObject (item_list);
# 214|
Error: COMPILER_WARNING (CWE-704): [#def47]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_name’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:356:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 356 | public string name { get; set;}
# | ^
# 354| public class ComboItemObject: GLib.Object
# 355| {
# 356|-> public string name { get; set;}
# 357| public string exec { get; set;}
# 358| public Gtk.Image icon { get; set;}
Error: COMPILER_WARNING (CWE-704): [#def48]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_exec’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:357:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 357 | public string exec { get; set;}
# | ^
# 355| {
# 356| public string name { get; set;}
# 357|-> public string exec { get; set;}
# 358| public Gtk.Image icon { get; set;}
# 359| public string icon_name { get; set;}
Error: COMPILER_WARNING (CWE-704): [#def49]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_icon_name’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:359:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 359 | public string icon_name { get; set;}
# | ^
# 357| public string exec { get; set;}
# 358| public Gtk.Image icon { get; set;}
# 359|-> public string icon_name { get; set;}
# 360| public string desktop_path { get; set;}
# 361| public string install_package { get; set;}
Error: COMPILER_WARNING (CWE-704): [#def50]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_desktop_path’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:360:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 360 | public string desktop_path { get; set;}
# | ^
# 358| public Gtk.Image icon { get; set;}
# 359| public string icon_name { get; set;}
# 360|-> public string desktop_path { get; set;}
# 361| public string install_package { get; set;}
# 362|
Error: COMPILER_WARNING (CWE-704): [#def51]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_combo_item_object_set_install_package’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:361:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 361 | public string install_package { get; set;}
# | ^
# 359| public string icon_name { get; set;}
# 360| public string desktop_path { get; set;}
# 361|-> public string install_package { get; set;}
# 362|
# 363| public string[] tmp_item_array;
Error: CLANG_WARNING: [#def52]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:368:2: warning[deadcode.DeadStores]: Value stored to '_tmp2__length1' is never read
# 366| {
# 367| this.tmp_item_array = item.split_set(",",0);
# 368|-> this.name = tmp_item_array[0];
# 369| this.exec = tmp_item_array[1];
# 370| this.icon = create_image(tmp_item_array[2]);
Error: CLANG_WARNING: [#def53]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:369:2: warning[deadcode.DeadStores]: Value stored to '_tmp4__length1' is never read
# 367| this.tmp_item_array = item.split_set(",",0);
# 368| this.name = tmp_item_array[0];
# 369|-> this.exec = tmp_item_array[1];
# 370| this.icon = create_image(tmp_item_array[2]);
# 371| this.icon_name = tmp_item_array[2];
Error: CLANG_WARNING: [#def54]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:370:2: warning[deadcode.DeadStores]: Value stored to '_tmp6__length1' is never read
# 368| this.name = tmp_item_array[0];
# 369| this.exec = tmp_item_array[1];
# 370|-> this.icon = create_image(tmp_item_array[2]);
# 371| this.icon_name = tmp_item_array[2];
# 372| this.desktop_path = tmp_item_array[3];
Error: CLANG_WARNING: [#def55]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:371:2: warning[deadcode.DeadStores]: Value stored to '_tmp10__length1' is never read
# 369| this.exec = tmp_item_array[1];
# 370| this.icon = create_image(tmp_item_array[2]);
# 371|-> this.icon_name = tmp_item_array[2];
# 372| this.desktop_path = tmp_item_array[3];
# 373| this.install_package = tmp_item_array[4];
Error: CLANG_WARNING: [#def56]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:372:2: warning[deadcode.DeadStores]: Value stored to '_tmp12__length1' is never read
# 370| this.icon = create_image(tmp_item_array[2]);
# 371| this.icon_name = tmp_item_array[2];
# 372|-> this.desktop_path = tmp_item_array[3];
# 373| this.install_package = tmp_item_array[4];
# 374| }
Error: CLANG_WARNING: [#def57]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:373:2: warning[deadcode.DeadStores]: Value stored to '_tmp14__length1' is never read
# 371| this.icon_name = tmp_item_array[2];
# 372| this.desktop_path = tmp_item_array[3];
# 373|-> this.install_package = tmp_item_array[4];
# 374| }
# 375|
Error: CLANG_WARNING: [#def58]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:416:3: warning[deadcode.DeadStores]: Value stored to '_combobox_list_size_' is never read
# 414| if (generic_item != null)
# 415| {
# 416|-> combobox_list = get_mime_list(kf, generic_item, "installed");
# 417| }
# 418| else
Error: CLANG_WARNING: [#def59]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:420:3: warning[deadcode.DeadStores]: Value stored to '_combobox_list_size_' is never read
# 418| else
# 419| {
# 420|-> combobox_list = get_mime_list(kf, combobox_list_name, "installed");
# 421| }
# 422|
Error: CLANG_WARNING: [#def60]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:427:5: warning[deadcode.DeadStores]: Value stored to '_tmp16_' is never read
# 425| list_store.set (iter, 0, "window-close" , 1, _("Disable"), 2, 0, 3,"");
# 426|
# 427|-> for (int a = 0 ; a < combobox_list.length ; a++)
# 428| {
# 429| string item_list = combobox_list[a];
Error: CLANG_WARNING: [#def61]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:429:5: warning[deadcode.DeadStores]: Value stored to '_tmp17__length1' is never read
# 427| for (int a = 0 ; a < combobox_list.length ; a++)
# 428| {
# 429|-> string item_list = combobox_list[a];
# 430| ComboItemObject combo_item = new ComboItemObject (item_list);
# 431|
Error: CLANG_WARNING: [#def62]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:568:2: warning[deadcode.DeadStores]: Value stored to '_mime_combobox_list_size_' is never read
# 566|
# 567| string[] mime_combobox_list;
# 568|-> mime_combobox_list = get_mime_list(kf, combobox_list_name, "installed");
# 569| string default_path = "";
# 570|
Error: CLANG_WARNING: [#def63]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:571:5: warning[deadcode.DeadStores]: Value stored to '_tmp24_' is never read
# 569| string default_path = "";
# 570|
# 571|-> for (int b = 0 ; b < mime_combobox_list.length ; b++)
# 572| {
# 573| string item_list = mime_combobox_list[b];
Error: CLANG_WARNING: [#def64]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:573:5: warning[deadcode.DeadStores]: Value stored to '_tmp25__length1' is never read
# 571| for (int b = 0 ; b < mime_combobox_list.length ; b++)
# 572| {
# 573|-> string item_list = mime_combobox_list[b];
# 574| ComboItemObject combo_item = new ComboItemObject (item_list);
# 575| message("combo_item.desktop_path: %s", combo_item.desktop_path);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:573:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:651:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:537:2: note: in expansion of macro ‘g_return_if_fail’
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:537:13: note: in expansion of macro ‘g_slice_new0’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:543:6: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:690:2: note: in expansion of macro ‘g_return_val_if_fail’
combobox.c: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala: scope_hint: In function ‘ldefault_apps_create_mime_associate_window’
# 571| for (int b = 0 ; b < mime_combobox_list.length ; b++)
# 572| {
# 573|-> string item_list = mime_combobox_list[b];
# 574| ComboItemObject combo_item = new ComboItemObject (item_list);
# 575| message("combo_item.desktop_path: %s", combo_item.desktop_path);
Error: CLANG_WARNING: [#def66]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:606:4: warning[deadcode.DeadStores]: Value stored to '__tmp52__size_' is never read
# 604| try
# 605| {
# 606|-> mime_list = kf_mime.get_string_list("Desktop Entry", "MimeType");
# 607| if (mime_list.length >= 1)
# 608| {
Error: CLANG_WARNING: [#def67]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:607:4: warning[deadcode.DeadStores]: Value stored to '_tmp57_' is never read
# 605| {
# 606| mime_list = kf_mime.get_string_list("Desktop Entry", "MimeType");
# 607|-> if (mime_list.length >= 1)
# 608| {
# 609| string base_name = Path.get_basename(default_path);
Error: CLANG_WARNING: [#def68]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:617:8: warning[deadcode.DeadStores]: Value stored to '_tmp71_' is never read
# 615| hbox_buttons.add(cancel_button);
# 616| message("Enter mime try");
# 617|-> for (int i = 0 ; i < mime_list.length ; i++)
# 618| {
# 619| string message_mime = mime_list[i] + "\n";
Error: CLANG_WARNING: [#def69]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:619:8: warning[deadcode.DeadStores]: Value stored to '_tmp72__length1' is never read
# 617| for (int i = 0 ; i < mime_list.length ; i++)
# 618| {
# 619|-> string message_mime = mime_list[i] + "\n";
# 620| message("Look at message_mime: %s", message_mime);
# 621| var label_mime = new Label(message_mime);
Error: CLANG_WARNING: [#def70]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:693:2: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 691| {
# 692| string keys = key1 + "/" + mode;
# 693|-> string[] return_value = {};
# 694| try
# 695| {
Error: CLANG_WARNING: [#def71]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:696:3: warning[deadcode.DeadStores]: Value stored to '__tmp5__size_' is never read
# 694| try
# 695| {
# 696|-> return_value = kf.get_string_list("Mime", keys);
# 697| }
# 698| catch (GLib.KeyFileError err)
Error: CLANG_WARNING: [#def72]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/combobox.vala:696:3: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 694| try
# 695| {
# 696|-> return_value = kf.get_string_list("Mime", keys);
# 697| }
# 698| catch (GLib.KeyFileError err)
Error: CPPCHECK_WARNING: [#def73]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def74]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.c:72:20: warning[-Wunused-variable]: ‘ldefault_apps_dbus_backend_properties’ defined but not used
# 72 | static GParamSpec* ldefault_apps_dbus_backend_properties[LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 70| LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES
# 71| };
# 72|-> static GParamSpec* ldefault_apps_dbus_backend_properties[LDEFAULT_APPS_DBUS_BACKEND_NUM_PROPERTIES];
# 73| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
# 74| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: CLANG_WARNING: [#def75]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:154:2: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 152| public string[] SessionSupport ()
# 153| {
# 154|-> string[] return_value = null;
# 155| try
# 156| {
Error: CLANG_WARNING: [#def76]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:157:3: warning[deadcode.DeadStores]: Value stored to '__tmp0__size_' is never read
# 155| try
# 156| {
# 157|-> return_value = dbus_lxsession.SessionSupport();
# 158| }
# 159| catch (GLib.IOError err)
Error: CLANG_WARNING: [#def77]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:157:3: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 155| try
# 156| {
# 157|-> return_value = dbus_lxsession.SessionSupport();
# 158| }
# 159| catch (GLib.IOError err)
Error: CLANG_WARNING: [#def78]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:168:2: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 166| public string[] SessionSupportDetail (string key1)
# 167| {
# 168|-> string[] return_value = null;
# 169| try
# 170| {
Error: CLANG_WARNING: [#def79]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:171:3: warning[deadcode.DeadStores]: Value stored to '__tmp0__size_' is never read
# 169| try
# 170| {
# 171|-> return_value = dbus_lxsession.SessionSupportDetail(key1);
# 172| }
# 173| catch (GLib.IOError err)
Error: CLANG_WARNING: [#def80]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/dbus-backend.vala:171:3: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 169| try
# 170| {
# 171|-> return_value = dbus_lxsession.SessionSupportDetail(key1);
# 172| }
# 173| catch (GLib.IOError err)
Error: COMPILER_WARNING (CWE-563): [#def81]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.c:68:20: warning[-Wunused-variable]: ‘ldefault_apps_update_windows_properties’ defined but not used
# 68 | static GParamSpec* ldefault_apps_update_windows_properties[LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 66| LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES
# 67| };
# 68|-> static GParamSpec* ldefault_apps_update_windows_properties[LDEFAULT_APPS_UPDATE_WINDOWS_NUM_PROPERTIES];
# 69| #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
# 70| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
Error: COMPILER_WARNING (CWE-563): [#def82]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.c:88:20: warning[-Wunused-variable]: ‘ldefault_apps_main_windows_properties’ defined but not used
# 88 | static GParamSpec* ldefault_apps_main_windows_properties[LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 86| LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES
# 87| };
# 88|-> static GParamSpec* ldefault_apps_main_windows_properties[LDEFAULT_APPS_MAIN_WINDOWS_NUM_PROPERTIES];
# 89|
# 90| #define LDEFAULT_APPS_TYPE_DBUS_BACKEND (ldefault_apps_dbus_backend_get_type ())
Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala: scope_hint: In function ‘ldefault_apps_update_windows_construct’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:46:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘g_object_new(object_type, 0)’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.c:69:35: note: in definition of macro ‘_g_key_file_unref0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:33:6: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:83:2: note: in expansion of macro ‘g_return_val_if_fail’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.c:69:35: note: in definition of macro ‘_g_key_file_unref0’
# 44| this.add (new Gtk.Label (_("The database is updating, please wait")));
# 45|
# 46|-> kf = get_keyfile();
# 47| update_database();
# 48| }
Error: CLANG_WARNING: [#def84]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:54:3: warning[deadcode.DeadStores]: Value stored to '_command_size_' is never read
# 52| try
# 53| {
# 54|-> string[] command = "lxsession-db -m write".split_set(" ",0);
# 55| Process.spawn_async (
# 56| null,
Error: CLANG_WARNING: [#def85]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:169:2: warning[deadcode.DeadStores]: Value stored to '_windows_manager_more_size_' is never read
# 167| /* New inits */
# 168| string windows_manager_help_message = _("Windows manager draws and manage the windows. \nYou can choose openbox, openbox-custom (for a custom openbox configuration, see \"More\"), kwin, compiz ...");
# 169|-> string[] windows_manager_more = {"session", "extras"};
# 170| string windows_manager_more_help_message = session_string_help + extra_string_help;
# 171| init_application(builder, kf, dbus_backend, "windows_manager", "", windows_manager_help_message, windows_manager_more, windows_manager_more_help_message, null);
Error: CLANG_WARNING: [#def86]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:174:2: warning[deadcode.DeadStores]: Value stored to '_panel_more_size_' is never read
# 172|
# 173| string panel_help_message = _("Panel is the component usually at the bottom of the screen which manages a list of opened windows, shortcuts, notification area ...");
# 174|-> string[] panel_more = {"session"};
# 175| string panel_more_help_message = session_string_help;
# 176| init_application(builder, kf, dbus_backend, "panel", "", panel_help_message, panel_more, panel_more_help_message, null);
Error: CLANG_WARNING: [#def87]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:179:2: warning[deadcode.DeadStores]: Value stored to '_dock_more_size_' is never read
# 177|
# 178| string dock_help_message = _("Dock is a second panel. It's used to launch a different program to handle a second type of panel.");
# 179|-> string[] dock_more = {"session"};
# 180| string dock_more_help_message = session_string_help;
# 181| init_application(builder, kf, dbus_backend, "dock", "", dock_help_message, dock_more, dock_more_help_message, null);
Error: CLANG_WARNING: [#def88]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:184:2: warning[deadcode.DeadStores]: Value stored to '_file_manager_more_size_' is never read
# 182|
# 183| string file_manager_help_message = _("File manager is the component which open the files.\nSee \"More\" to add options to handle the desktop, or opening files ");
# 184|-> string[] file_manager_more = {"combobox_manual", "session", "extra", "handle_desktop", "mime_association", "mime_available"};
# 185| string file_manager_more_help_message = manual_setting_help + session_string_help + extra_string_help + handle_desktop_help + mime_association_help + mime_available_help;
# 186| init_application_combobox (builder, kf, dbus_backend, "file_manager", "", file_manager_help_message, file_manager_more, file_manager_more_help_message, null);
Error: CLANG_WARNING: [#def89]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:189:2: warning[deadcode.DeadStores]: Value stored to '_composite_manager_more_size_' is never read
# 187|
# 188| string composite_manager_help_message = _("Composite manager enables graphics effects, like transparency and shadows, if the windows manager doesn't handle it. \nExample: compton");
# 189|-> string[] composite_manager_more = {""};
# 190| string composite_manager_more_help_message = "";
# 191| init_application(builder, kf, dbus_backend, "composite_manager", "", composite_manager_help_message, composite_manager_more, composite_manager_more_help_message, null);
Error: CLANG_WARNING: [#def90]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:194:2: warning[deadcode.DeadStores]: Value stored to '_desktop_manager_more_size_' is never read
# 192|
# 193| string desktop_manager_help_message = _("Desktop manager draws the desktop and manages the icons inside it.\nYou can manage it with the file manager by setting \"filemanager\"");
# 194|-> string[] desktop_manager_more = {"wallpaper", "handle_desktop"};
# 195| string desktop_manager_more_help_message = _("Wallpaper: Set an image path to draw the wallpaper");
# 196| init_application(builder, kf, dbus_backend, "desktop_manager", "", desktop_manager_help_message, desktop_manager_more, desktop_manager_more_help_message, null);
Error: CLANG_WARNING: [#def91]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:199:2: warning[deadcode.DeadStores]: Value stored to '_screensaver_more_size_' is never read
# 197|
# 198| string screensaver_help_message = _("Screensaver is a program which displays animations when your computer is idle");
# 199|-> string[] screensaver_more = {""};
# 200| string screensaver_more_help_message = "";
# 201| init_application(builder, kf, dbus_backend, "screensaver", "", screensaver_help_message, screensaver_more, screensaver_more_help_message, null);
Error: CLANG_WARNING: [#def92]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:204:2: warning[deadcode.DeadStores]: Value stored to '_power_manager_more_size_' is never read
# 202|
# 203| string power_manager_help_message = _("Power Manager helps you to reduce the usage of batteries. You probably don't need one if you have a desktop computer.\nAuto option will set it automatically, depending of the laptop mode option.");
# 204|-> string[] power_manager_more = {""};
# 205| string power_manager_more_help_message = "";
# 206| init_application(builder, kf, dbus_backend, "power_manager", "", power_manager_help_message, power_manager_more, power_manager_more_help_message, null);
Error: CLANG_WARNING: [#def93]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:209:2: warning[deadcode.DeadStores]: Value stored to '_polkit_more_size_' is never read
# 207|
# 208| string polkit_help_message = _("Polkit agent provides authorisations to use some actions, like suspend, hibernate, using Consolekit ... It's not advised to make it blank.");
# 209|-> string[] polkit_more = {""};
# 210| string polkit_more_help_message = "";
# 211| init_application(builder, kf, dbus_backend, "polkit", "", polkit_help_message, polkit_more, polkit_more_help_message, null);
Error: CLANG_WARNING: [#def94]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:214:2: warning[deadcode.DeadStores]: Value stored to '_network_gui_more_size_' is never read
# 212|
# 213| string network_gui_help_message = _("Set an utility to manager connections, such as nm-applet");
# 214|-> string[] network_gui_more = {""};
# 215| string network_gui_more_help_message = "";
# 216| init_application(builder, kf, dbus_backend, "network_gui", "", network_gui_help_message, network_gui_more, network_gui_more_help_message, null);
Error: CLANG_WARNING: [#def95]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:219:2: warning[deadcode.DeadStores]: Value stored to '_im1_more_size_' is never read
# 217|
# 218| string im1_help_message = _("Use a communication software (an IRC client, an IM client ...)");
# 219|-> string[] im1_more = {"combobox_manual", "autostart", "mime_association", "mime_available"};
# 220| string im1_more_help_message = manual_setting_help + autostart_help + mime_association_help + mime_available_help;
# 221| init_application_combobox (builder, kf, dbus_backend, "im1", "", im1_help_message, im1_more, im1_more_help_message, "im");
Error: CLANG_WARNING: [#def96]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:224:2: warning[deadcode.DeadStores]: Value stored to '_im2_more_size_' is never read
# 222|
# 223| string im2_help_message = _("Use another communication software (an IRC client, an IM client ...)");
# 224|-> string[] im2_more = {"combobox_manual", "autostart", "mime_association", "mime_available"};
# 225| string im2_more_help_message = manual_setting_help + autostart_help + mime_association_help + mime_available_help;
# 226| init_application_combobox (builder, kf, dbus_backend, "im2", "", im2_help_message, im2_more, im2_more_help_message, "im");
Error: CLANG_WARNING: [#def97]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:229:2: warning[deadcode.DeadStores]: Value stored to '_terminal_manager_more_size_' is never read
# 227|
# 228| string terminal_manager_help_message = _("Terminal by default to launch command line.");
# 229|-> string[] terminal_manager_more = {"combobox_manual", "debian_default", "mime_association", "mime_available"};
# 230| string terminal_manager_more_help_message = manual_setting_help + debian_default_help + mime_association_help + mime_available_help;
# 231| init_application_combobox (builder, kf, dbus_backend, "terminal_manager", "", terminal_manager_help_message, terminal_manager_more, terminal_manager_more_help_message, null);
Error: CLANG_WARNING: [#def98]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:234:2: warning[deadcode.DeadStores]: Value stored to '_webbrowser_more_size_' is never read
# 232|
# 233| string webbrowser_help_message = _("Application to go to Internet, Google, Facebook, debian.org ...");
# 234|-> string[] webbrowser_more = {"combobox_manual", "debian_default", "mime_association", "mime_available"};
# 235| string webbrowser_more_help_message = manual_setting_help + debian_default_help + mime_association_help + mime_available_help;
# 236| init_application_combobox (builder, kf, dbus_backend, "webbrowser", "", webbrowser_help_message, webbrowser_more, webbrowser_more_help_message, null);
Error: CLANG_WARNING: [#def99]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:239:2: warning[deadcode.DeadStores]: Value stored to '_email_more_size_' is never read
# 237|
# 238| string email_help_message = _("Application to send mails");
# 239|-> string[] email_more = {"combobox_manual", "mime_association", "mime_available"};
# 240| string email_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 241| init_application_combobox (builder, kf, dbus_backend, "email", "", email_help_message, email_more, email_more_help_message, null);
Error: CLANG_WARNING: [#def100]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:244:2: warning[deadcode.DeadStores]: Value stored to '_widget_more_size_' is never read
# 242|
# 243| string widget_help_message = _("Utility to launch gadgets, like conky, screenlets ...");
# 244|-> string[] widget_more = {"autostart"};
# 245| string widget_more_help_message = autostart_help;
# 246| init_application(builder, kf, dbus_backend, "widget1", "", widget_help_message, widget_more, widget_more_help_message, "widget");
Error: CLANG_WARNING: [#def101]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:249:2: warning[deadcode.DeadStores]: Value stored to '_launcher_manager_more_size_' is never read
# 247|
# 248| string launcher_manager_help_message = _("Utility to launch application, like synapse, kupfer ... \nFor using lxpanel or lxde default utility, use \"lxpanelctl\" ");
# 249|-> string[] launcher_manager_more = {"autostart"};
# 250| string launcher_manager_more_help_message = autostart_help;
# 251| init_application(builder, kf, dbus_backend, "launcher_manager", "", launcher_manager_help_message, launcher_manager_more, launcher_manager_more_help_message, null);
Error: CLANG_WARNING: [#def102]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:254:2: warning[deadcode.DeadStores]: Value stored to '_screenshot_manager_more_size_' is never read
# 252|
# 253| string screenshot_manager_help_message = _("Application for taking screeshot of your desktop, like scrot ...");
# 254|-> string[] screenshot_manager_more = {""};
# 255| string screenshot_manager_more_help_message = autostart_help;
# 256| init_application(builder, kf, dbus_backend, "screenshot_manager", "", screenshot_manager_help_message, screenshot_manager_more, screenshot_manager_more_help_message, null);
Error: CLANG_WARNING: [#def103]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:259:2: warning[deadcode.DeadStores]: Value stored to '_pdf_reader_more_size_' is never read
# 257|
# 258| string pdf_reader_help_message = _("Viewer for PDF, like evince");
# 259|-> string[] pdf_reader_more = {"combobox_manual", "mime_association", "mime_available"};
# 260| string pdf_reader_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 261| init_application_combobox (builder, kf, dbus_backend, "pdf_reader", "", pdf_reader_help_message, pdf_reader_more, pdf_reader_more_help_message, null);
Error: CLANG_WARNING: [#def104]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:264:2: warning[deadcode.DeadStores]: Value stored to '_video_player_more_size_' is never read
# 262|
# 263| string video_player_help_message = _("Video application");
# 264|-> string[] video_player_more = {"combobox_manual", "mime_association", "mime_available"};
# 265| string video_player_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 266| init_application_combobox (builder, kf, dbus_backend, "video_player", "", video_player_help_message, video_player_more, video_player_more_help_message, null);
Error: CLANG_WARNING: [#def105]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:269:2: warning[deadcode.DeadStores]: Value stored to '_audio_player_more_size_' is never read
# 267|
# 268| string audio_player_help_message = _("Audio application");
# 269|-> string[] audio_player_more = {"combobox_manual", "mime_association", "mime_available"};
# 270| string audio_player_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 271| init_application_combobox (builder, kf, dbus_backend, "audio_player", "", audio_player_help_message, audio_player_more, audio_player_more_help_message, null);
Error: CLANG_WARNING: [#def106]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:274:2: warning[deadcode.DeadStores]: Value stored to '_image_display_more_size_' is never read
# 272|
# 273| string image_display_help_message = _("Application to display images");
# 274|-> string[] image_display_more = {"combobox_manual", "mime_association", "mime_available"};
# 275| string image_display_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 276| init_application_combobox (builder, kf, dbus_backend, "image_display", "", image_display_help_message, image_display_more, image_display_more_help_message, "image_display");
Error: CLANG_WARNING: [#def107]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:279:2: warning[deadcode.DeadStores]: Value stored to '_text_editor_more_size_' is never read
# 277|
# 278| string text_editor_help_message = _("Application to edit text");
# 279|-> string[] text_editor_more = {"combobox_manual", "mime_association", "mime_available", "debian_default"};
# 280| string text_editor_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 281| init_application_combobox (builder, kf, dbus_backend, "text_editor", "", text_editor_help_message, text_editor_more, text_editor_more_help_message, "text_editor");
Error: CLANG_WARNING: [#def108]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:284:2: warning[deadcode.DeadStores]: Value stored to '_archive_more_size_' is never read
# 282|
# 283| string archive_help_message = _("Application to create archives, like file-roller");
# 284|-> string[] archive_more = {"combobox_manual", "mime_association", "mime_available"};
# 285| string archive_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 286| init_application_combobox (builder, kf, dbus_backend, "archive", "", archive_help_message, archive_more, archive_more_help_message, null);
Error: CLANG_WARNING: [#def109]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:289:2: warning[deadcode.DeadStores]: Value stored to '_charmap_more_size_' is never read
# 287|
# 288| string charmap_help_message = _("Charmap application");
# 289|-> string[] charmap_more = {""};
# 290| string charmap_more_help_message = "";
# 291| init_application(builder, kf, dbus_backend, "charmap", "", charmap_help_message, charmap_more, charmap_more_help_message, null);
Error: CLANG_WARNING: [#def110]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:294:2: warning[deadcode.DeadStores]: Value stored to '_calculator_more_size_' is never read
# 292|
# 293| string calculator_help_message = _("Calculator application");
# 294|-> string[] calculator_more = {""};
# 295| string calculator_more_help_message = "";
# 296| init_application(builder, kf, dbus_backend, "calculator", "", calculator_help_message, calculator_more, calculator_more_help_message, null);
Error: CLANG_WARNING: [#def111]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:299:2: warning[deadcode.DeadStores]: Value stored to '_spreadsheet_more_size_' is never read
# 297|
# 298| string spreadsheet_help_message = _("Application to create spreedsheet, like gnumeric");
# 299|-> string[] spreadsheet_more = {"combobox_manual", "mime_association", "mime_available"};
# 300| string spreadsheet_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 301| init_application_combobox (builder, kf, dbus_backend, "spreadsheet", "", spreadsheet_help_message, spreadsheet_more, spreadsheet_more_help_message, null);
Error: CLANG_WARNING: [#def112]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:304:2: warning[deadcode.DeadStores]: Value stored to '_bittorent_more_size_' is never read
# 302|
# 303| string bittorent_help_message = _("Application to manage bittorent, like transmission");
# 304|-> string[] bittorent_more = {"combobox_manual", "mime_association", "mime_available"};
# 305| string bittorent_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 306| init_application_combobox (builder, kf, dbus_backend, "bittorent", "", bittorent_help_message, bittorent_more, bittorent_more_help_message, null);
Error: CLANG_WARNING: [#def113]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:309:2: warning[deadcode.DeadStores]: Value stored to '_document_more_size_' is never read
# 307|
# 308| string document_help_message = _("Application to manage office text, like abiword");
# 309|-> string[] document_more = {"combobox_manual", "mime_association", "mime_available"};
# 310| string document_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 311| init_application_combobox (builder, kf, dbus_backend, "document", "", document_help_message, document_more, document_more_help_message, null);
Error: CLANG_WARNING: [#def114]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:314:2: warning[deadcode.DeadStores]: Value stored to '_webcam_more_size_' is never read
# 312|
# 313| string webcam_help_message = _("Application to manage webcam");
# 314|-> string[] webcam_more = {""};
# 315| string webcam_more_help_message = manual_setting_help;
# 316| init_application(builder, kf, dbus_backend, "webcam", "", webcam_help_message, webcam_more, webcam_more_help_message, null);
Error: CLANG_WARNING: [#def115]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:319:2: warning[deadcode.DeadStores]: Value stored to '_burn_more_size_' is never read
# 317|
# 318| string burn_help_message = _("Application to manage burning CD/DVD utilty ");
# 319|-> string[] burn_more = {"combobox_manual", "mime_association", "mime_available"};
# 320| string burn_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 321| init_application_combobox (builder, kf, dbus_backend, "burn", "", burn_help_message, burn_more, burn_more_help_message, null);
Error: CLANG_WARNING: [#def116]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:324:2: warning[deadcode.DeadStores]: Value stored to '_notes_more_size_' is never read
# 322|
# 323| string notes_help_message = _("Application to manage notes utility");
# 324|-> string[] notes_more = {""};
# 325| string notes_more_help_message = manual_setting_help;
# 326| init_application(builder, kf, dbus_backend, "notes", "", notes_help_message, notes_more, notes_more_help_message, null);
Error: CLANG_WARNING: [#def117]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:329:2: warning[deadcode.DeadStores]: Value stored to '_disk_utility_more_size_' is never read
# 327|
# 328| string disk_utility_help_message = _("Application to manage disks");
# 329|-> string[] disk_utility_more = {""};
# 330| string disk_utility_more_help_message = manual_setting_help;
# 331| init_application(builder, kf, dbus_backend, "disk_utility", "", disk_utility_help_message, disk_utility_more, disk_utility_more_help_message, null);
Error: CLANG_WARNING: [#def118]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:334:2: warning[deadcode.DeadStores]: Value stored to '_tasks_more_size_' is never read
# 332|
# 333| string tasks_help_message = _("Application to monitor tasks running on your system");
# 334|-> string[] tasks_more = {"combobox_manual", "mime_association", "mime_available"};
# 335| string tasks_more_help_message = manual_setting_help + mime_association_help + mime_available_help;
# 336| init_application_combobox (builder, kf, dbus_backend, "tasks", "", tasks_help_message, tasks_more, tasks_more_help_message, null);
Error: CLANG_WARNING: [#def119]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:339:2: warning[deadcode.DeadStores]: Value stored to '_lock_manager_more_size_' is never read
# 337|
# 338| string lock_manager_help_message = _("Application to lock your screen");
# 339|-> string[] lock_manager_more = {""};
# 340| string lock_manager_more_help_message = manual_setting_help;
# 341| init_application(builder, kf, dbus_backend, "lock_manager", "", lock_manager_help_message, lock_manager_more, lock_manager_more_help_message, null);
Error: CLANG_WARNING: [#def120]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:344:2: warning[deadcode.DeadStores]: Value stored to '_audio_manager_more_size_' is never read
# 342|
# 343| string audio_manager_help_message = _("Managing your audio configuration");
# 344|-> string[] audio_manager_more = {""};
# 345| string audio_manager_more_help_message = manual_setting_help;
# 346| init_application(builder, kf, dbus_backend, "audio_manager", "", audio_manager_help_message, audio_manager_more, audio_manager_more_help_message, null);
Error: CLANG_WARNING: [#def121]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:349:2: warning[deadcode.DeadStores]: Value stored to '_workspace_manager_more_size_' is never read
# 347|
# 348| string workspace_manager_help_message = _("Managing your workspace configuration");
# 349|-> string[] workspace_manager_more = {""};
# 350| string workspace_manager_more_help_message = manual_setting_help;
# 351| init_application(builder, kf, dbus_backend, "workspace_manager", "", workspace_manager_help_message, workspace_manager_more, workspace_manager_more_help_message, null);
Error: CLANG_WARNING: [#def122]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:354:2: warning[deadcode.DeadStores]: Value stored to '_quit_manager_more_size_' is never read
# 352|
# 353| string quit_manager_help_message = _("Managing the application to quit your session");
# 354|-> string[] quit_manager_more = {""};
# 355| string quit_manager_more_help_message = manual_setting_help;
# 356| init_application(builder, kf, dbus_backend, "quit_manager", "", quit_manager_help_message, quit_manager_more, quit_manager_more_help_message, null);
Error: CLANG_WARNING: [#def123]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:359:2: warning[deadcode.DeadStores]: Value stored to '_upgrade_manager_more_size_' is never read
# 357|
# 358| string upgrade_manager_help_message = _("Managing the application to update and upgrade your system");
# 359|-> string[] upgrade_manager_more = {""};
# 360| string upgrade_manager_more_help_message = manual_setting_help;
# 361| init_application(builder, kf, dbus_backend, "upgrade_manager", "", upgrade_manager_help_message, upgrade_manager_more, upgrade_manager_more_help_message, null);
Error: CLANG_WARNING: [#def124]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:364:2: warning[deadcode.DeadStores]: Value stored to '_clipboard_more_size_' is never read
# 362|
# 363| string clipboard_help_message = _("Managing clipboard support");
# 364|-> string[] clipboard_more = {""};
# 365| string clipboard_more_help_message = manual_setting_help;
# 366| init_application(builder, kf, dbus_backend, "clipboard", "", clipboard_help_message, clipboard_more, clipboard_more_help_message, null);
Error: CLANG_WARNING: [#def125]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:369:2: warning[deadcode.DeadStores]: Value stored to '_security_more_size_' is never read
# 367|
# 368| string security_help_message = _("Managing keyring support.\nStandard options available \"gnome\" for gnome-keyring support or \"ssh-agent\" for ssh-agent support");
# 369|-> string[] security_more = {""};
# 370| string security_more_help_message = manual_setting_help;
# 371| init_application(builder, kf, dbus_backend, "keyring", "", security_help_message, security_more, security_more_help_message, null);
Error: CLANG_WARNING: [#def126]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:374:2: warning[deadcode.DeadStores]: Value stored to '_a11y_more_size_' is never read
# 372|
# 373| string a11y_help_message = _("Managing support for accessibility.\nStardart option are gnome, for stardart gnome support.");
# 374|-> string[] a11y_more = {""};
# 375| string a11y_more_help_message = manual_setting_help;
# 376| init_application(builder, kf, dbus_backend, "a11y", "", a11y_help_message, a11y_more, a11y_more_help_message, null);
Error: CLANG_WARNING: [#def127]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:379:2: warning[deadcode.DeadStores]: Value stored to '_proxy_manager_more_size_' is never read
# 377|
# 378| string proxy_manager_help_message = _("Managing proxy support");
# 379|-> string[] proxy_manager_more = {""};
# 380| string proxy_manager_more_help_message = manual_setting_help;
# 381| init_application(builder, kf, dbus_backend, "proxy_manager", "", proxy_manager_help_message, proxy_manager_more, proxy_manager_more_help_message, null);
Error: CLANG_WARNING: [#def128]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:384:2: warning[deadcode.DeadStores]: Value stored to '_xrandr_more_size_' is never read
# 382|
# 383| string xrandr_help_message = _("Managing XRandr parameters. Use a command like xrandr --something");
# 384|-> string[] xrandr_more = {""};
# 385| string xrandr_more_help_message = manual_setting_help;
# 386| init_application(builder, kf, dbus_backend, "xrandr", "", xrandr_help_message, xrandr_more, xrandr_more_help_message, null);
Error: CLANG_WARNING: [#def129]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:390:2: warning[deadcode.DeadStores]: Value stored to '_disable_autostart_commands_size_' is never read
# 388| /* TODO Adapat to be generic ? A bit too complex for now */
# 389| var disable_autostart_combobox = new Gtk.ComboBox();
# 390|-> string[] disable_autostart_commands = { "no", "config-only", "all"};
# 391| string disable_autostart_default = dbus_backend.Get("disable_autostart", "");
# 392| disable_autostart_combobox = ui_combobox_init( builder,
Error: CLANG_WARNING: [#def130]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:415:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 413| #endif
# 414|
# 415|-> disable_autostart_combobox.changed.connect (() => {
# 416| if (return_combobox_text(disable_autostart_combobox) == "all")
# 417| {
Error: CLANG_WARNING: [#def131]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:464:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 462| }
# 463|
# 464|-> upstart_session_checkbutton.toggled.connect (() => {
# 465| if (upstart_session_checkbutton.get_active())
# 466| {
Error: CLANG_WARNING: [#def132]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:477:2: warning[deadcode.DeadStores]: Value stored to '_keymap_mode_commands_size_' is never read
# 475| /* Keymap init */
# 476| var keymap_mode_combobox = new Gtk.ComboBox();
# 477|-> string[] keymap_mode_commands = { "", "user"};
# 478| string keymap_mode_default = dbus_backend.KeymapGet("mode", null);
# 479| keymap_mode_combobox = ui_combobox_init( builder,
Error: CLANG_WARNING: [#def133]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:498:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 496|
# 497| var keymap_apply_button = builder.get_object("keymap_apply") as Gtk.Button;
# 498|-> keymap_apply_button.clicked.connect (() => {
# 499| message ("Click !");
# 500| dbus_backend.KeymapSet("mode", null, return_combobox_text(keymap_mode_combobox));
Error: CLANG_WARNING: [#def134]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:508:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 506|
# 507| var keymap_reload_button = builder.get_object("keymap_reload") as Gtk.Button;
# 508|-> keymap_reload_button.clicked.connect (() => {
# 509| dbus_backend.KeymapActivate();
# 510| });
Error: CLANG_WARNING: [#def135]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:514:2: warning[deadcode.DeadStores]: Value stored to '_laptop_mode_commands_size_' is never read
# 512| /* Laptop mode */
# 513| var laptop_mode_combobox = new Gtk.ComboBox();
# 514|-> string[] laptop_mode_commands = { "no", "yes", "unknown"};
# 515| string laptop_mode_default = dbus_backend.StateGet("laptop_mode", null);
# 516| laptop_mode_combobox = ui_combobox_init( builder,
Error: CLANG_WARNING: [#def136]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:522:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 520| laptop_mode_default);
# 521|
# 522|-> laptop_mode_combobox.changed.connect (() => {
# 523| dbus_backend.StateSet("laptop_mode", null, return_combobox_text(laptop_mode_combobox));
# 524| });
Error: CLANG_WARNING: [#def137]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:541:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 539| }
# 540|
# 541|-> dbus_gnome_checkbutton.toggled.connect (() => {
# 542| message ("Click !");
# 543| if (dbus_gnome_checkbutton.get_active())
Error: CLANG_WARNING: [#def138]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:555:2: warning[deadcode.DeadStores]: Value stored to '_environment_type_commands_size_' is never read
# 553| /* Environment */
# 554| var environment_type_combobox = new Gtk.ComboBox();
# 555|-> string[] environment_type_commands = { "", "lubuntu"};
# 556| string environment_type_default = dbus_backend.EnvironmentGet("type", null);
# 557| environment_type_combobox = ui_combobox_init( builder,
Error: CLANG_WARNING: [#def139]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:563:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 561| environment_type_default);
# 562|
# 563|-> environment_type_combobox.changed.connect (() => {
# 564| dbus_backend.EnvironmentSet("type", null, return_combobox_text(environment_type_combobox));
# 565| });
Error: CLANG_WARNING: [#def140]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/main.vala:571:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 569|
# 570| var env_apply_button = builder.get_object("env_apply") as Gtk.Button;
# 571|-> env_apply_button.clicked.connect (() => {
# 572| message ("Click !");
# 573| dbus_backend.EnvironmentSet("menu_prefix", null, enviroment_menu_prefix_entry.get_text());
Error: COMPILER_WARNING (CWE-563): [#def141]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/utils.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-default-apps/utils.c:60:20: warning[-Wunused-variable]: ‘ldefault_apps_ldefault_apps_signals_properties’ defined but not used
# 60 | static GParamSpec* ldefault_apps_ldefault_apps_signals_properties[LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 58| LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES
# 59| };
# 60|-> static GParamSpec* ldefault_apps_ldefault_apps_signals_properties[LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_NUM_PROPERTIES];
# 61| enum {
# 62| LDEFAULT_APPS_LDEFAULT_APPS_SIGNALS_UPDATE_UI_SIGNAL,
Error: CPPCHECK_WARNING: [#def142]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-569): [#def143]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c: scope_hint: In function ‘get_autostart_files_in_dir’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c:126:16: warning[-Wparentheses]: suggest parentheses around assignment used as truth value
# 126 | while( name = g_dir_read_name(dir) )
# | ^~~~
# 124| const char *name;
# 125|
# 126|-> while( name = g_dir_read_name(dir) )
# 127| {
# 128| if(g_str_has_suffix(name, ".desktop"))
Error: GCC_ANALYZER_WARNING (CWE-688): [#def144]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c: scope_hint: In function ‘update_enable_state’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c:216:21: warning[-Wanalyzer-null-argument]: use of NULL ‘session_name’ where non-null expected
/usr/include/glib-2.0/glib/galloca.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 214| for( i = 0; i < n; ++i )
# 215| {
# 216|-> if( strcmp(list[i], session_name) == 0 )
# 217| {
# 218| g_free(list[i]);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit-common.c:259:21: warning[-Wanalyzer-null-argument]: use of NULL ‘session_name’ where non-null expected
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
# 257| for( i = 0; i < n; ++i )
# 258| {
# 259|-> if( strcmp(list[i], session_name) == 0 )
# 260| {
# 261| g_free(list[i]);
Error: CPPCHECK_WARNING: [#def146]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-edit/lxsession-edit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-483): [#def148]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘shutdown_clicked’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:238:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 238 | else if (handler_context->shutdown_systemd)
# | ^~
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:241:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 241 | if (err)
# | ^~
# 236| else if (handler_context->shutdown_ConsoleKit)
# 237| dbus_ConsoleKit_PowerOff(&err);
# 238|-> else if (handler_context->shutdown_systemd)
# 239| dbus_systemd_PowerOff(&err);
# 240|
Error: COMPILER_WARNING (CWE-483): [#def149]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘reboot_clicked’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:268:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 268 | else if (handler_context->reboot_systemd)
# | ^~
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:271:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 271 | if (err)
# | ^~
# 266| else if (handler_context->reboot_ConsoleKit)
# 267| dbus_ConsoleKit_Reboot(&err);
# 268|-> else if (handler_context->reboot_systemd)
# 269| dbus_systemd_Reboot(&err);
# 270|
Error: COMPILER_WARNING (CWE-483): [#def150]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘suspend_clicked’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:293:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 293 | else if (handler_context->suspend_systemd)
# | ^~
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:296:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 296 | if (err)
# | ^~
# 291| else if (handler_context->suspend_ConsoleKit)
# 292| dbus_ConsoleKit_Suspend(&err);
# 293|-> else if (handler_context->suspend_systemd)
# 294| dbus_systemd_Suspend(&err);
# 295|
Error: COMPILER_WARNING (CWE-483): [#def151]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘hibernate_clicked’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:318:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 318 | else if (handler_context->hibernate_systemd)
# | ^~
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:321:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 321 | if (err)
# | ^~
# 316| else if (handler_context->hibernate_ConsoleKit)
# 317| dbus_ConsoleKit_Hibernate(&err);
# 318|-> else if (handler_context->hibernate_systemd)
# 319| dbus_systemd_Hibernate(&err);
# 320|
Error: COMPILER_WARNING (CWE-483): [#def152]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c: scope_hint: In function ‘switch_user_clicked’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:345:10: warning[-Wmisleading-indentation]: this ‘if’ clause does not guard...
# 345 | else if(handler_context->switch_user_LXDM)
# | ^~
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession-logout/lxsession-logout.c:348:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
# 348 | if (err)
# | ^~
# 343| else if (handler_context->switch_user_LIGHTDM)
# 344| dbus_Lightdm_SwitchToGreeter(&err);
# 345|-> else if(handler_context->switch_user_LXDM)
# 346| g_spawn_command_line_sync("lxdm-binary -c USER_SWITCH", NULL, NULL, NULL, NULL);
# 347|
Error: CPPCHECK_WARNING: [#def153]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def154]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:97:20: warning[-Wunused-variable]: ‘lxsession_simple_app_object_properties’ defined but not used
# 97 | static GParamSpec* lxsession_simple_app_object_properties[LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 95| LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES
# 96| };
# 97|-> static GParamSpec* lxsession_simple_app_object_properties[LXSESSION_SIMPLE_APP_OBJECT_NUM_PROPERTIES];
# 98|
# 99| #define LXSESSION_TYPE_GENERIC_APP_OBJECT (lxsession_generic_app_object_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def155]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:113:20: warning[-Wunused-variable]: ‘lxsession_generic_app_object_properties’ defined but not used
# 113 | static GParamSpec* lxsession_generic_app_object_properties[LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 111| LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES
# 112| };
# 113|-> static GParamSpec* lxsession_generic_app_object_properties[LXSESSION_GENERIC_APP_OBJECT_NUM_PROPERTIES];
# 114|
# 115| #define LXSESSION_TYPE_APP_TYPE (lxsession_app_type_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def156]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:149:20: warning[-Wunused-variable]: ‘lxsession_windows_manager_app_properties’ defined but not used
# 149 | static GParamSpec* lxsession_windows_manager_app_properties[LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 147| LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES
# 148| };
# 149|-> static GParamSpec* lxsession_windows_manager_app_properties[LXSESSION_WINDOWS_MANAGER_APP_NUM_PROPERTIES];
# 150|
# 151| #define LXSESSION_TYPE_LXSESSION_CONFIG (lxsession_lxsession_config_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def157]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:186:20: warning[-Wunused-variable]: ‘lxsession_panel_app_properties’ defined but not used
# 186 | static GParamSpec* lxsession_panel_app_properties[LXSESSION_PANEL_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 184| LXSESSION_PANEL_APP_NUM_PROPERTIES
# 185| };
# 186|-> static GParamSpec* lxsession_panel_app_properties[LXSESSION_PANEL_APP_NUM_PROPERTIES];
# 187|
# 188| #define LXSESSION_TYPE_DOCK_APP (lxsession_dock_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def158]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:202:20: warning[-Wunused-variable]: ‘lxsession_dock_app_properties’ defined but not used
# 202 | static GParamSpec* lxsession_dock_app_properties[LXSESSION_DOCK_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 200| LXSESSION_DOCK_APP_NUM_PROPERTIES
# 201| };
# 202|-> static GParamSpec* lxsession_dock_app_properties[LXSESSION_DOCK_APP_NUM_PROPERTIES];
# 203|
# 204| #define LXSESSION_TYPE_SCREENSAVER_APP (lxsession_screensaver_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def159]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:218:20: warning[-Wunused-variable]: ‘lxsession_screensaver_app_properties’ defined but not used
# 218 | static GParamSpec* lxsession_screensaver_app_properties[LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 216| LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES
# 217| };
# 218|-> static GParamSpec* lxsession_screensaver_app_properties[LXSESSION_SCREENSAVER_APP_NUM_PROPERTIES];
# 219|
# 220| #define LXSESSION_TYPE_POWER_MANAGER_APP (lxsession_power_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def160]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:234:20: warning[-Wunused-variable]: ‘lxsession_power_manager_app_properties’ defined but not used
# 234 | static GParamSpec* lxsession_power_manager_app_properties[LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 232| LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES
# 233| };
# 234|-> static GParamSpec* lxsession_power_manager_app_properties[LXSESSION_POWER_MANAGER_APP_NUM_PROPERTIES];
# 235|
# 236| #define LXSESSION_TYPE_FILE_MANAGER_APP (lxsession_file_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def161]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:250:20: warning[-Wunused-variable]: ‘lxsession_file_manager_app_properties’ defined but not used
# 250 | static GParamSpec* lxsession_file_manager_app_properties[LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 248| LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES
# 249| };
# 250|-> static GParamSpec* lxsession_file_manager_app_properties[LXSESSION_FILE_MANAGER_APP_NUM_PROPERTIES];
# 251|
# 252| #define LXSESSION_TYPE_DESKTOP_APP (lxsession_desktop_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def162]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:266:20: warning[-Wunused-variable]: ‘lxsession_desktop_app_properties’ defined but not used
# 266 | static GParamSpec* lxsession_desktop_app_properties[LXSESSION_DESKTOP_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 264| LXSESSION_DESKTOP_APP_NUM_PROPERTIES
# 265| };
# 266|-> static GParamSpec* lxsession_desktop_app_properties[LXSESSION_DESKTOP_APP_NUM_PROPERTIES];
# 267| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
# 268|
Error: COMPILER_WARNING (CWE-563): [#def163]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:283:20: warning[-Wunused-variable]: ‘lxsession_polkit_app_properties’ defined but not used
# 283 | static GParamSpec* lxsession_polkit_app_properties[LXSESSION_POLKIT_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 281| LXSESSION_POLKIT_APP_NUM_PROPERTIES
# 282| };
# 283|-> static GParamSpec* lxsession_polkit_app_properties[LXSESSION_POLKIT_APP_NUM_PROPERTIES];
# 284|
# 285| #define LXSESSION_TYPE_NETWORK_GUI_APP (lxsession_network_gui_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def164]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:299:20: warning[-Wunused-variable]: ‘lxsession_network_gui_app_properties’ defined but not used
# 299 | static GParamSpec* lxsession_network_gui_app_properties[LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 297| LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES
# 298| };
# 299|-> static GParamSpec* lxsession_network_gui_app_properties[LXSESSION_NETWORK_GUI_APP_NUM_PROPERTIES];
# 300|
# 301| #define LXSESSION_TYPE_AUDIO_MANAGER_APP (lxsession_audio_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def165]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:315:20: warning[-Wunused-variable]: ‘lxsession_audio_manager_app_properties’ defined but not used
# 315 | static GParamSpec* lxsession_audio_manager_app_properties[LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 313| LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES
# 314| };
# 315|-> static GParamSpec* lxsession_audio_manager_app_properties[LXSESSION_AUDIO_MANAGER_APP_NUM_PROPERTIES];
# 316|
# 317| #define LXSESSION_TYPE_QUIT_MANAGER_APP (lxsession_quit_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def166]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:331:20: warning[-Wunused-variable]: ‘lxsession_quit_manager_app_properties’ defined but not used
# 331 | static GParamSpec* lxsession_quit_manager_app_properties[LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 329| LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES
# 330| };
# 331|-> static GParamSpec* lxsession_quit_manager_app_properties[LXSESSION_QUIT_MANAGER_APP_NUM_PROPERTIES];
# 332|
# 333| #define LXSESSION_TYPE_WORKSPACE_MANAGER_APP (lxsession_workspace_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def167]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:347:20: warning[-Wunused-variable]: ‘lxsession_workspace_manager_app_properties’ defined but not used
# 347 | static GParamSpec* lxsession_workspace_manager_app_properties[LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 345| LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES
# 346| };
# 347|-> static GParamSpec* lxsession_workspace_manager_app_properties[LXSESSION_WORKSPACE_MANAGER_APP_NUM_PROPERTIES];
# 348|
# 349| #define LXSESSION_TYPE_LAUNCHER_MANAGER_APP (lxsession_launcher_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def168]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:363:20: warning[-Wunused-variable]: ‘lxsession_launcher_manager_app_properties’ defined but not used
# 363 | static GParamSpec* lxsession_launcher_manager_app_properties[LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 361| LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES
# 362| };
# 363|-> static GParamSpec* lxsession_launcher_manager_app_properties[LXSESSION_LAUNCHER_MANAGER_APP_NUM_PROPERTIES];
# 364|
# 365| #define LXSESSION_TYPE_TERMINAL_MANAGER_APP (lxsession_terminal_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def169]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:379:20: warning[-Wunused-variable]: ‘lxsession_terminal_manager_app_properties’ defined but not used
# 379 | static GParamSpec* lxsession_terminal_manager_app_properties[LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 377| LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES
# 378| };
# 379|-> static GParamSpec* lxsession_terminal_manager_app_properties[LXSESSION_TERMINAL_MANAGER_APP_NUM_PROPERTIES];
# 380|
# 381| #define LXSESSION_TYPE_PROXY_MANAGER_APP (lxsession_proxy_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def170]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:395:20: warning[-Wunused-variable]: ‘lxsession_proxy_manager_app_properties’ defined but not used
# 395 | static GParamSpec* lxsession_proxy_manager_app_properties[LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 393| LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES
# 394| };
# 395|-> static GParamSpec* lxsession_proxy_manager_app_properties[LXSESSION_PROXY_MANAGER_APP_NUM_PROPERTIES];
# 396|
# 397| #define LXSESSION_TYPE_A11Y_APP (lxsession_a11y_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def171]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:411:20: warning[-Wunused-variable]: ‘lxsession_a11y_app_properties’ defined but not used
# 411 | static GParamSpec* lxsession_a11y_app_properties[LXSESSION_A11Y_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 409| LXSESSION_A11Y_APP_NUM_PROPERTIES
# 410| };
# 411|-> static GParamSpec* lxsession_a11y_app_properties[LXSESSION_A11Y_APP_NUM_PROPERTIES];
# 412|
# 413| #define LXSESSION_TYPE_XRANDR_APP (lxsession_xrandr_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def172]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:427:20: warning[-Wunused-variable]: ‘lxsession_xrandr_app_properties’ defined but not used
# 427 | static GParamSpec* lxsession_xrandr_app_properties[LXSESSION_XRANDR_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 425| LXSESSION_XRANDR_APP_NUM_PROPERTIES
# 426| };
# 427|-> static GParamSpec* lxsession_xrandr_app_properties[LXSESSION_XRANDR_APP_NUM_PROPERTIES];
# 428|
# 429| #define LXSESSION_TYPE_KEYRING_APP (lxsession_keyring_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def173]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:443:20: warning[-Wunused-variable]: ‘lxsession_keyring_app_properties’ defined but not used
# 443 | static GParamSpec* lxsession_keyring_app_properties[LXSESSION_KEYRING_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 441| LXSESSION_KEYRING_APP_NUM_PROPERTIES
# 442| };
# 443|-> static GParamSpec* lxsession_keyring_app_properties[LXSESSION_KEYRING_APP_NUM_PROPERTIES];
# 444|
# 445| #define LXSESSION_TYPE_SCREENSHOT_MANAGER_APP (lxsession_screenshot_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def174]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:459:20: warning[-Wunused-variable]: ‘lxsession_screenshot_manager_app_properties’ defined but not used
# 459 | static GParamSpec* lxsession_screenshot_manager_app_properties[LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 457| LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES
# 458| };
# 459|-> static GParamSpec* lxsession_screenshot_manager_app_properties[LXSESSION_SCREENSHOT_MANAGER_APP_NUM_PROPERTIES];
# 460|
# 461| #define LXSESSION_TYPE_UPDATES_MANAGER_APP (lxsession_updates_manager_app_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def175]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:495:20: warning[-Wunused-variable]: ‘lxsession_updates_manager_app_properties’ defined but not used
# 495 | static GParamSpec* lxsession_updates_manager_app_properties[LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 493| LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES
# 494| };
# 495|-> static GParamSpec* lxsession_updates_manager_app_properties[LXSESSION_UPDATES_MANAGER_APP_NUM_PROPERTIES];
# 496|
# 497| #define LXSESSION_TYPE_SESSION_OBJECT (lxsession_session_object_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def176]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.c:533:20: warning[-Wunused-variable]: ‘lxsession_crash_manager_app_properties’ defined but not used
# 533 | static GParamSpec* lxsession_crash_manager_app_properties[LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 531| LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES
# 532| };
# 533|-> static GParamSpec* lxsession_crash_manager_app_properties[LXSESSION_CRASH_MANAGER_APP_NUM_PROPERTIES];
# 534| #define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
# 535| typedef struct _Block2Data Block2Data;
Error: COMPILER_WARNING (CWE-704): [#def177]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_app_object_set_name’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:39:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 37| public Pid pid;
# 38|
# 39|-> public string name { get; set;}
# 40| public string[] command { get; set;}
# 41| public bool guard { get; set; default = false;}
Error: COMPILER_WARNING (CWE-704): [#def178]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_app_object_set_application_type’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:42:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 40| public string[] command { get; set;}
# 41| public bool guard { get; set; default = false;}
# 42|-> public string application_type { get; set;}
# 43| public int crash_count { get; set; default = 0;}
# 44|
Error: CLANG_WARNING: [#def179]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:66:5: warning[deadcode.DeadStores]: Value stored to '_spawn_env_size_' is never read
# 64| try
# 65| {
# 66|-> string[] spawn_env = Environ.get ();
# 67| Process.spawn_async (
# 68| arg1,
Error: CLANG_WARNING: [#def180]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:67:5: warning[deadcode.DeadStores]: Value stored to '_tmp6__length1' is never read
# 65| {
# 66| string[] spawn_env = Environ.get ();
# 67|-> Process.spawn_async (
# 68| arg1,
# 69| this.command,
Error: CLANG_WARNING: [#def181]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:67:5: warning[deadcode.DeadStores]: Value stored to '_tmp7__length1' is never read
# 65| {
# 66| string[] spawn_env = Environ.get ();
# 67|-> Process.spawn_async (
# 68| arg1,
# 69| this.command,
Error: CLANG_WARNING: [#def182]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:78:8: warning[deadcode.DeadStores]: Value stored to '_tmp14_' is never read
# 76| message ("Launching %s ", this.name);
# 77|
# 78|-> for (int a = 0 ; a <= this.command.length ; a++)
# 79| {
# 80| GLib.stdout.printf("%s ",this.command[a]);
Error: CLANG_WARNING: [#def183]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:80:8: warning[deadcode.DeadStores]: Value stored to '_tmp18__length1' is never read
# 78| for (int a = 0 ; a <= this.command.length ; a++)
# 79| {
# 80|-> GLib.stdout.printf("%s ",this.command[a]);
# 81| }
# 82| GLib.stdout.printf("\n");
Error: COMPILER_WARNING (CWE-704): [#def184]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_generic_simple_app_set_settings_command’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:191:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 189| public class GenericSimpleApp: SimpleAppObject
# 190| {
# 191|-> public string settings_command { get; set; default = "";}
# 192|
# 193| public GenericSimpleApp (string argument)
Error: CLANG_WARNING: [#def185]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:201:2: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 199| public override void read_settings()
# 200| {
# 201|-> string[] create_command = settings_command.split_set(" ",0);
# 202| this.name = create_command[0];
# 203| this.command = create_command;
Error: CLANG_WARNING: [#def186]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:273:7: warning[deadcode.DeadStores]: Value stored to '_tmp49_' is never read
# 271|
# 272| case "openbox-custom":
# 273|-> switch (session)
# 274| {
# 275| default:
Error: CLANG_WARNING: [#def187]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:326:6: warning[deadcode.DeadStores]: Value stored to '_tmp23_' is never read
# 324| string return_value = "";
# 325|
# 326|-> for(int i = 0; i < wm_list.length; ++i)
# 327| {
# 328| unowned string wm = wm_list.index(i);
Error: CLANG_WARNING: [#def188]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:396:4: warning[deadcode.DeadStores]: Value stored to '_spawn_env_size_' is never read
# 394| try
# 395| {
# 396|-> string[] spawn_env = Environ.get ();
# 397| Process.spawn_async (
# 398| null,
Error: CLANG_WARNING: [#def189]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:397:4: warning[deadcode.DeadStores]: Value stored to '_tmp6__length1' is never read
# 395| {
# 396| string[] spawn_env = Environ.get ();
# 397|-> Process.spawn_async (
# 398| null,
# 399| this.command,
Error: CLANG_WARNING: [#def190]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:397:4: warning[deadcode.DeadStores]: Value stored to '_tmp7__length1' is never read
# 395| {
# 396| string[] spawn_env = Environ.get ();
# 397|-> Process.spawn_async (
# 398| null,
# 399| this.command,
Error: CLANG_WARNING: [#def191]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:406:7: warning[deadcode.DeadStores]: Value stored to '_tmp13_' is never read
# 404| ChildWatch.add(pid, this.callback_pid);
# 405|
# 406|-> for (int a = 0 ; a <= this.command.length ; a++)
# 407| {
# 408| GLib.stdout.printf("%s ",this.command[a]);
Error: CLANG_WARNING: [#def192]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:408:7: warning[deadcode.DeadStores]: Value stored to '_tmp17__length1' is never read
# 406| for (int a = 0 ; a <= this.command.length ; a++)
# 407| {
# 408|-> GLib.stdout.printf("%s ",this.command[a]);
# 409| }
# 410| GLib.stdout.printf("\n");
Error: CLANG_WARNING: [#def193]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:462:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 460| break;
# 461| default:
# 462|-> string[] create_command = panel_command.split_set(" ",0);
# 463| this.name = create_command[0];
# 464| this.command = create_command;
Error: CLANG_WARNING: [#def194]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:463:5: warning[deadcode.DeadStores]: Value stored to '_tmp25__length1' is never read
# 461| default:
# 462| string[] create_command = panel_command.split_set(" ",0);
# 463|-> this.name = create_command[0];
# 464| this.command = create_command;
# 465| break;
Error: CLANG_WARNING: [#def195]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:506:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 504| break;
# 505| default:
# 506|-> string[] create_command = screensaver_command.split_set(" ",0);
# 507| this.name = create_command[0];
# 508| this.command = create_command;
Error: CLANG_WARNING: [#def196]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:507:5: warning[deadcode.DeadStores]: Value stored to '_tmp15__length1' is never read
# 505| default:
# 506| string[] create_command = screensaver_command.split_set(" ",0);
# 507|-> this.name = create_command[0];
# 508| this.command = create_command;
# 509| break;
Error: CLANG_WARNING: [#def197]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:547:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 545| break;
# 546| default:
# 547|-> string[] create_command = powermanager_command.split_set(" ",0);
# 548| this.name = create_command[0];
# 549| this.command = create_command;
Error: CLANG_WARNING: [#def198]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:548:5: warning[deadcode.DeadStores]: Value stored to '_tmp17__length1' is never read
# 546| default:
# 547| string[] create_command = powermanager_command.split_set(" ",0);
# 548|-> this.name = create_command[0];
# 549| this.command = create_command;
# 550| break;
Error: CLANG_WARNING: [#def199]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:605:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 603| break;
# 604| default:
# 605|-> string[] create_command = filemanager_command.split_set(" ",0);
# 606| this.name = create_command[0];
# 607| this.command = create_command;
Error: CLANG_WARNING: [#def200]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:606:5: warning[deadcode.DeadStores]: Value stored to '_tmp52__length1' is never read
# 604| default:
# 605| string[] create_command = filemanager_command.split_set(" ",0);
# 606|-> this.name = create_command[0];
# 607| this.command = create_command;
# 608| break;
Error: CLANG_WARNING: [#def201]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:667:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 665| break;
# 666| default:
# 667|-> string[] create_command = desktop_command.split_set(" ",0);
# 668| this.name = create_command[0];
# 669| this.command = create_command;
Error: CLANG_WARNING: [#def202]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:668:5: warning[deadcode.DeadStores]: Value stored to '_tmp66__length1' is never read
# 666| default:
# 667| string[] create_command = desktop_command.split_set(" ",0);
# 668|-> this.name = create_command[0];
# 669| this.command = create_command;
# 670| break;
Error: CLANG_WARNING: [#def203]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:677:2: warning[deadcode.DeadStores]: Value stored to '_backup_command_size_' is never read
# 675| public void launch_settings()
# 676| {
# 677|-> string[] backup_command = this.command;
# 678|
# 679| switch (this.name)
Error: CLANG_WARNING: [#def204]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:793:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 791| break;
# 792| default:
# 793|-> string[] create_command = network_command.split_set(" ",0);
# 794| this.name = create_command[0];
# 795| this.command = create_command;
Error: CLANG_WARNING: [#def205]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:794:5: warning[deadcode.DeadStores]: Value stored to '_tmp26__length1' is never read
# 792| default:
# 793| string[] create_command = network_command.split_set(" ",0);
# 794|-> this.name = create_command[0];
# 795| this.command = create_command;
# 796| break;
Error: CLANG_WARNING: [#def206]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:823:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 821| break;
# 822| default:
# 823|-> string[] create_command = audiomanager_command.split_set(" ",0);
# 824| this.name = create_command[0];
# 825| this.command = create_command;
Error: CLANG_WARNING: [#def207]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:824:5: warning[deadcode.DeadStores]: Value stored to '_tmp14__length1' is never read
# 822| default:
# 823| string[] create_command = audiomanager_command.split_set(" ",0);
# 824|-> this.name = create_command[0];
# 825| this.command = create_command;
# 826| break;
Error: CLANG_WARNING: [#def208]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:857:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 855| break;
# 856| default:
# 857|-> string[] create_command = quitmanager_command.split_set(" ",0);
# 858| this.name = create_command[0];
# 859| this.command = create_command;
Error: CLANG_WARNING: [#def209]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:858:5: warning[deadcode.DeadStores]: Value stored to '_tmp25__length1' is never read
# 856| default:
# 857| string[] create_command = quitmanager_command.split_set(" ",0);
# 858|-> this.name = create_command[0];
# 859| this.command = create_command;
# 860| break;
Error: CLANG_WARNING: [#def210]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:886:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 884| break;
# 885| default:
# 886|-> string[] create_command = workspacemanager_command.split_set(" ",0);
# 887| this.name = create_command[0];
# 888| this.command = create_command;
Error: CLANG_WARNING: [#def211]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:887:5: warning[deadcode.DeadStores]: Value stored to '_tmp14__length1' is never read
# 885| default:
# 886| string[] create_command = workspacemanager_command.split_set(" ",0);
# 887|-> this.name = create_command[0];
# 888| this.command = create_command;
# 889| break;
Error: CLANG_WARNING: [#def212]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:915:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 913| break;
# 914| default:
# 915|-> string[] create_command = launchermanager_command.split_set(" ",0);
# 916| this.name = create_command[0];
# 917| this.command = create_command;
Error: CLANG_WARNING: [#def213]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:916:5: warning[deadcode.DeadStores]: Value stored to '_tmp14__length1' is never read
# 914| default:
# 915| string[] create_command = launchermanager_command.split_set(" ",0);
# 916|-> this.name = create_command[0];
# 917| this.command = create_command;
# 918| break;
Error: CLANG_WARNING: [#def214]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:961:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 959| break;
# 960| default:
# 961|-> string[] create_command = terminalmanager_command.split_set(" ",0);
# 962| this.name = create_command[0];
# 963| this.command = create_command;
Error: CLANG_WARNING: [#def215]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:962:5: warning[deadcode.DeadStores]: Value stored to '_tmp12__length1' is never read
# 960| default:
# 961| string[] create_command = terminalmanager_command.split_set(" ",0);
# 962|-> this.name = create_command[0];
# 963| this.command = create_command;
# 964| break;
Error: CLANG_WARNING: [#def216]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1037:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1035| case "gnome":
# 1036| string tmp_command = "/usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately";
# 1037|-> string[] create_command = tmp_command.split_set(" ",0);
# 1038| this.name = create_command[0];
# 1039| this.command = create_command;
Error: CLANG_WARNING: [#def217]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1038:5: warning[deadcode.DeadStores]: Value stored to '_tmp10__length1' is never read
# 1036| string tmp_command = "/usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately";
# 1037| string[] create_command = tmp_command.split_set(" ",0);
# 1038|-> this.name = create_command[0];
# 1039| this.command = create_command;
# 1040| break;
Error: CLANG_WARNING: [#def218]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1042:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1040| break;
# 1041| default:
# 1042|-> string[] create_command = a11y_command.split_set(" ",0);
# 1043| this.name = create_command[0];
# 1044| this.command = create_command;
Error: CLANG_WARNING: [#def219]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1043:5: warning[deadcode.DeadStores]: Value stored to '_tmp16__length1' is never read
# 1041| default:
# 1042| string[] create_command = a11y_command.split_set(" ",0);
# 1043|-> this.name = create_command[0];
# 1044| this.command = create_command;
# 1045| break;
Error: CLANG_WARNING: [#def220]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1075:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1073| break;
# 1074| default:
# 1075|-> string[] create_command = xrandr_command.split_set(" ",0);
# 1076| this.name = create_command[0];
# 1077| this.command = create_command;
Error: CLANG_WARNING: [#def221]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1076:5: warning[deadcode.DeadStores]: Value stored to '_tmp9__length1' is never read
# 1074| default:
# 1075| string[] create_command = xrandr_command.split_set(" ",0);
# 1076|-> this.name = create_command[0];
# 1077| this.command = create_command;
# 1078| break;
Error: CLANG_WARNING: [#def222]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1102:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1100| case "gnome-all":
# 1101| string tmp_command = "gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg";
# 1102|-> string[] create_command = tmp_command.split_set(" ",0);
# 1103| this.name = create_command[0];
# 1104| this.command = create_command;
Error: CLANG_WARNING: [#def223]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1103:5: warning[deadcode.DeadStores]: Value stored to '_tmp12__length1' is never read
# 1101| string tmp_command = "gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg";
# 1102| string[] create_command = tmp_command.split_set(" ",0);
# 1103|-> this.name = create_command[0];
# 1104| this.command = create_command;
# 1105| break;
Error: CLANG_WARNING: [#def224]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1108:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1106| case "ssh-agent":
# 1107| string tmp_command = "/usr/bin/ssh-agent -s";
# 1108|-> string[] create_command = tmp_command.split_set(" ",0);
# 1109| this.name = create_command[0];
# 1110| this.command = create_command;
Error: CLANG_WARNING: [#def225]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1109:5: warning[deadcode.DeadStores]: Value stored to '_tmp19__length1' is never read
# 1107| string tmp_command = "/usr/bin/ssh-agent -s";
# 1108| string[] create_command = tmp_command.split_set(" ",0);
# 1109|-> this.name = create_command[0];
# 1110| this.command = create_command;
# 1111| break;
Error: CLANG_WARNING: [#def226]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1113:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1111| break;
# 1112| default:
# 1113|-> string[] create_command = keyring_command.split_set(" ",0);
# 1114| this.name = create_command[0];
# 1115| this.command = create_command;
Error: CLANG_WARNING: [#def227]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1114:5: warning[deadcode.DeadStores]: Value stored to '_tmp25__length1' is never read
# 1112| default:
# 1113| string[] create_command = keyring_command.split_set(" ",0);
# 1114|-> this.name = create_command[0];
# 1115| this.command = create_command;
# 1116| break;
Error: CLANG_WARNING: [#def228]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1134:2: warning[deadcode.DeadStores]: Value stored to '_tmp5_' is never read
# 1132| screenshotmanager_command = global_settings.get_item_string("Session", "screenshot_manager", "command");
# 1133|
# 1134|-> switch (screenshotmanager_command)
# 1135| {
# 1136| default:
Error: CLANG_WARNING: [#def229]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1137:4: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1135| {
# 1136| default:
# 1137|-> string[] create_command = screenshotmanager_command.split_set(" ",0);
# 1138| this.name = create_command[0];
# 1139| this.command = create_command;
Error: CLANG_WARNING: [#def230]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1148:2: warning[deadcode.DeadStores]: Value stored to '_backup_command_size_' is never read
# 1146| read_settings();
# 1147|
# 1148|-> string[] backup_command = this.command;
# 1149|
# 1150| switch (screenshotmanager_command)
Error: CLANG_WARNING: [#def231]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1224:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1222| break;
# 1223| default:
# 1224|-> string[] create_command = updatesmanager_command.split_set(" ",0);
# 1225| this.name = create_command[0];
# 1226| this.command = create_command;
Error: CLANG_WARNING: [#def232]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1225:5: warning[deadcode.DeadStores]: Value stored to '_tmp9__length1' is never read
# 1223| default:
# 1224| string[] create_command = updatesmanager_command.split_set(" ",0);
# 1225|-> this.name = create_command[0];
# 1226| this.command = create_command;
# 1227| break;
Error: CLANG_WARNING: [#def233]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1423:2: warning[deadcode.DeadStores]: Value stored to 'updates_normal' is never read
# 1421| string[] updates_num;
# 1422| int updates_urgent = 0;
# 1423|-> int updates_normal = 0;
# 1424| int updates_state = 0;
# 1425| int number_updates = 0;
Error: CLANG_WARNING: [#def234]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1491:4: warning[deadcode.DeadStores]: Value stored to 'updates_normal' is never read
# 1489| {
# 1490| updates_urgent = 0;
# 1491|-> updates_normal = 0;
# 1492| updates_state = 1;
# 1493| error_string = _("An error occurred, please run Package Manager from the left-click menu or apt-get in a terminal to see what is wrong.");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def235]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1494:14: warning[-Wanalyzer-null-argument]: use of NULL ‘standard_error’ where non-null expected
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1407:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:82: included_from: Included from here.
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1407:12: note: in expansion of macro ‘g_slice_new0’
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1416:11: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1419:11: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1245:45: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1452:6: note: in expansion of macro ‘G_UNLIKELY’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
glib-2.0.vapi:1534:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gstrfuncs.h:324:38: note: in definition of macro ‘g_strdup’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1493:24: note: in expansion of macro ‘_’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1493:14: note: in expansion of macro ‘g_strdup’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala: scope_hint: In function ‘lxsession_updates_manager_app_on_apt_update_file_change’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1493:4: note: in expansion of macro ‘_g_free0’
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 1492| updates_state = 1;
# 1493| error_string = _("An error occurred, please run Package Manager from the left-click menu or apt-get in a terminal to see what is wrong.");
# 1494|-> if (standard_error.length > 3)
# 1495| {
# 1496| notification_text = error_string + "\n" + _("The error message was: ") + standard_error;
Error: CLANG_WARNING: [#def236]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1505:4: warning[deadcode.DeadStores]: Value stored to '_updates_num_size_' is never read
# 1503| else
# 1504| {
# 1505|-> updates_num = standard_error.split_set(";",2);
# 1506| message ("Number of upgrades: %s", updates_num[0]);
# 1507| message ("Number of security upgrades: %s", updates_num[1]);
Error: CLANG_WARNING: [#def237]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1506:4: warning[deadcode.DeadStores]: Value stored to '_tmp59__length1' is never read
# 1504| {
# 1505| updates_num = standard_error.split_set(";",2);
# 1506|-> message ("Number of upgrades: %s", updates_num[0]);
# 1507| message ("Number of security upgrades: %s", updates_num[1]);
# 1508| updates_num[2] = "0";
Error: CLANG_WARNING: [#def238]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1507:4: warning[deadcode.DeadStores]: Value stored to '_tmp61__length1' is never read
# 1505| updates_num = standard_error.split_set(";",2);
# 1506| message ("Number of upgrades: %s", updates_num[0]);
# 1507|-> message ("Number of security upgrades: %s", updates_num[1]);
# 1508| updates_num[2] = "0";
# 1509|
Error: CLANG_WARNING: [#def239]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1508:4: warning[deadcode.DeadStores]: Value stored to '_tmp63__length1' is never read
# 1506| message ("Number of upgrades: %s", updates_num[0]);
# 1507| message ("Number of security upgrades: %s", updates_num[1]);
# 1508|-> updates_num[2] = "0";
# 1509|
# 1510| updates_urgent = int.parse(updates_num[1]);
Error: CLANG_WARNING: [#def240]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1510:4: warning[deadcode.DeadStores]: Value stored to '_tmp65__length1' is never read
# 1508| updates_num[2] = "0";
# 1509|
# 1510|-> updates_urgent = int.parse(updates_num[1]);
# 1511| updates_normal = int.parse(updates_num[0]);
# 1512| number_updates = updates_normal + updates_urgent;
Error: CLANG_WARNING: [#def241]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1511:4: warning[deadcode.DeadStores]: Value stored to '_tmp67__length1' is never read
# 1509|
# 1510| updates_urgent = int.parse(updates_num[1]);
# 1511|-> updates_normal = int.parse(updates_num[0]);
# 1512| number_updates = updates_normal + updates_urgent;
# 1513|
Error: CLANG_WARNING: [#def242]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1688:2: warning[deadcode.DeadStores]: Value stored to 'fcntl_return' is never read
# 1686| fl.l_start = 100;
# 1687| fl.l_len = 0;
# 1688|-> fcntl_return = Posix.fcntl (fd, Posix.F_SETLK, fl);
# 1689|
# 1690| return false;
Error: CLANG_WARNING: [#def243]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1727:5: warning[deadcode.DeadStores]: Value stored to '_create_command_size_' is never read
# 1725| break;
# 1726| default:
# 1727|-> string[] create_command = crash_manager_command.split_set(" ",0);
# 1728| this.name = create_command[0];
# 1729| this.command = create_command;
Error: CLANG_WARNING: [#def244]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1728:5: warning[deadcode.DeadStores]: Value stored to '_tmp9__length1' is never read
# 1726| default:
# 1727| string[] create_command = crash_manager_command.split_set(" ",0);
# 1728|-> this.name = create_command[0];
# 1729| this.command = create_command;
# 1730| break;
Error: CLANG_WARNING: [#def245]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/app.vala:1821:5: warning[deadcode.DeadStores]: Value stored to '_tmp30__length1' is never read
# 1819| {
# 1820| message("Check element in crash_list: %s", element);
# 1821|-> if (uploaded_list != null)
# 1822| {
# 1823| if (element in uploaded_list)
Error: CPPCHECK_WARNING: [#def246]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def247]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.c:64:20: warning[-Wunused-variable]: ‘lxsession_lxsession_autostart_config_properties’ defined but not used
# 64 | static GParamSpec* lxsession_lxsession_autostart_config_properties[LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 62| LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES
# 63| };
# 64|-> static GParamSpec* lxsession_lxsession_autostart_config_properties[LXSESSION_LXSESSION_AUTOSTART_CONFIG_NUM_PROPERTIES];
# 65| #define _g_array_unref0(var) ((var == NULL) ? NULL : (var = (g_array_unref (var), NULL)))
# 66| #define _g_free0(var) (var = (g_free (var), NULL))
Error: CLANG_WARNING: [#def248]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.vala:60:8: warning[deadcode.DeadStores]: Value stored to '_command_size_' is never read
# 58| builder.append(line);
# 59| builder.erase(0,1);
# 60|-> string[] command = builder.str.split_set(" ",0);
# 61| AppType app = { command[0], command, true, "" };
# 62| app_list.append_val (app);
Error: CLANG_WARNING: [#def249]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.vala:61:8: warning[deadcode.DeadStores]: Value stored to '_tmp32__length1' is never read
# 59| builder.erase(0,1);
# 60| string[] command = builder.str.split_set(" ",0);
# 61|-> AppType app = { command[0], command, true, "" };
# 62| app_list.append_val (app);
# 63| break;
Error: CLANG_WARNING: [#def250]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.vala:68:8: warning[deadcode.DeadStores]: Value stored to '_command_size_' is never read
# 66| break;
# 67| default:
# 68|-> string[] command = line.split_set(" ",0);
# 69| AppType app = { command[0], command, false, "" };
# 70| app_list.append_val (app);
Error: CLANG_WARNING: [#def251]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.vala:69:8: warning[deadcode.DeadStores]: Value stored to '_tmp46__length1' is never read
# 67| default:
# 68| string[] command = line.split_set(" ",0);
# 69|-> AppType app = { command[0], command, false, "" };
# 70| app_list.append_val (app);
# 71| break;
Error: CLANG_WARNING: [#def252]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/autostart.vala:86:6: warning[deadcode.DeadStores]: Value stored to '_tmp1_' is never read
# 84| public void start_applications() {
# 85|
# 86|-> for (int i = 0; i < stock_list.length; ++i) {
# 87| unowned AppType s = stock_list.index(i);
# 88| var launch_app = new GenericAppObject(s);
Error: CPPCHECK_WARNING: [#def253]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/conffiles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def254]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/conffiles.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/conffiles.c:61:20: warning[-Wunused-variable]: ‘lxsession_conffiles_object_properties’ defined but not used
# 61 | static GParamSpec* lxsession_conffiles_object_properties[LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 59| LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES
# 60| };
# 61|-> static GParamSpec* lxsession_conffiles_object_properties[LXSESSION_CONFFILES_OBJECT_NUM_PROPERTIES];
# 62| #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
# 63| #define _g_free0(var) (var = (g_free (var), NULL))
Error: COMPILER_WARNING (CWE-563): [#def255]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/control.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/control.c:63:20: warning[-Wunused-variable]: ‘lxsession_control_object_properties’ defined but not used
# 63 | static GParamSpec* lxsession_control_object_properties[LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 61| LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES
# 62| };
# 63|-> static GParamSpec* lxsession_control_object_properties[LXSESSION_CONTROL_OBJECT_NUM_PROPERTIES];
# 64| #define _g_free0(var) (var = (g_free (var), NULL))
# 65|
Error: COMPILER_WARNING (CWE-563): [#def256]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-common.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-common.c:75:20: warning[-Wunused-variable]: ‘lxsession_session_object_properties’ defined but not used
# 75 | static GParamSpec* lxsession_session_object_properties[LXSESSION_SESSION_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 73| LXSESSION_SESSION_OBJECT_NUM_PROPERTIES
# 74| };
# 75|-> static GParamSpec* lxsession_session_object_properties[LXSESSION_SESSION_OBJECT_NUM_PROPERTIES];
# 76| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
# 77| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: CPPCHECK_WARNING: [#def257]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-gnome-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def258]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-gnome-session.vala:26:2: warning[deadcode.DeadStores]: Value stored to '_data_' is never read
# 24|
# 25| [DBus(name = "org.gnome.SessionManager")]
# 26|-> public class GnomeSessionServer : Object {
# 27| string not_implemented = "Error, lxsession doesn't implement this API";
# 28| /*
Error: CPPCHECK_WARNING: [#def259]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-lxde-session.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def260]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-lxde-session.c:62:20: warning[-Wunused-variable]: ‘lxsession_lxde_session_server_properties’ defined but not used
# 62 | static GParamSpec* lxsession_lxde_session_server_properties[LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 60| LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES
# 61| };
# 62|-> static GParamSpec* lxsession_lxde_session_server_properties[LXSESSION_LXDE_SESSION_SERVER_NUM_PROPERTIES];
# 63|
# 64| #define LXSESSION_TYPE_SESSION_OBJECT (lxsession_session_object_get_type ())
Error: CLANG_WARNING: [#def261]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-lxde-session.vala:214:2: warning[deadcode.DeadStores]: Value stored to '_list_size_' is never read
# 212| tmp_support = global_settings.get_support(categorie);
# 213|
# 214|-> list = tmp_support.split_set(";",0);
# 215| // TODO Remove the last item (empty)
# 216|
Error: CLANG_WARNING: [#def262]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/dbus-lxde-session.vala:238:2: warning[deadcode.DeadStores]: Value stored to '_list_size_' is never read
# 236|
# 237| message ("tmp for support detail: %s", tmp);
# 238|-> list = tmp.split_set(";",0);
# 239| // TODO Remove the last item (empty)
# 240|
Error: CPPCHECK_WARNING: [#def263]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def264]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.c:61:20: warning[-Wunused-variable]: ‘lxsession_lxsession_env_properties’ defined but not used
# 61 | static GParamSpec* lxsession_lxsession_env_properties[LXSESSION_LXSESSION_ENV_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 59| LXSESSION_LXSESSION_ENV_NUM_PROPERTIES
# 60| };
# 61|-> static GParamSpec* lxsession_lxsession_env_properties[LXSESSION_LXSESSION_ENV_NUM_PROPERTIES];
# 62| #define _g_free0(var) (var = (g_free (var), NULL))
# 63|
Error: CLANG_WARNING: [#def265]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:154:3: warning[deadcode.DeadStores]: Value stored to '_custom_config_array_size_' is never read
# 152| else
# 153| {
# 154|-> string[] custom_config_array = custom_config.split_set(":",0);
# 155| string[] config_dirs_array = config_dirs.split_set(":",0);
# 156|
Error: CLANG_WARNING: [#def266]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:155:3: warning[deadcode.DeadStores]: Value stored to '_config_dirs_array_size_' is never read
# 153| {
# 154| string[] custom_config_array = custom_config.split_set(":",0);
# 155|-> string[] config_dirs_array = config_dirs.split_set(":",0);
# 156|
# 157| string custom_config_check = "";
Error: CLANG_WARNING: [#def267]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:195:3: warning[deadcode.DeadStores]: Value stored to '_custom_data_array_size_' is never read
# 193| else
# 194| {
# 195|-> string[] custom_data_array = custom_data.split_set(":",0);
# 196| string[] data_dirs_array = data_dirs.split_set(":",0);
# 197|
Error: CLANG_WARNING: [#def268]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:196:3: warning[deadcode.DeadStores]: Value stored to '_data_dirs_array_size_' is never read
# 194| {
# 195| string[] custom_data_array = custom_data.split_set(":",0);
# 196|-> string[] data_dirs_array = data_dirs.split_set(":",0);
# 197|
# 198| string custom_data_check = "";
Error: CLANG_WARNING: [#def269]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:239:3: warning[deadcode.DeadStores]: Value stored to '__tmp3__size_' is never read
# 237| try
# 238| {
# 239|-> if (env_kf.get_keys("Environment_variable") != null)
# 240| {
# 241| string[] env_list = env_kf.get_keys("Environment_variable");
Error: CLANG_WARNING: [#def270]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/environement.vala:241:4: warning[deadcode.DeadStores]: Value stored to '_env_list_size_' is never read
# 239| if (env_kf.get_keys("Environment_variable") != null)
# 240| {
# 241|-> string[] env_list = env_kf.get_keys("Environment_variable");
# 242| foreach (string entry in env_list)
# 243| {
Error: CPPCHECK_WARNING: [#def271]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def272]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.c:390:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
# 390 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 388| LXSESSION_MAIN_NUM_PROPERTIES
# 389| };
# 390|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# 391| #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
# 392| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: CLANG_WARNING: [#def273]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala:68:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 66| XSettingsOption global_xsettings_manager;
# 67|
# 68|-> public class Main: GLib.Object
# 69| {
# 70| static string session = "LXDE";
Error: COMPILER_WARNING (CWE-697): [#def274]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala: scope_hint: In function ‘lxsession_main_main’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala:515:285: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda16__gbus_name_acquired_callback’ will never be NULL
# 515 | Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
# | ^
main.c:750:1: note: ‘____lambda16__gbus_name_acquired_callback’ declared here
# 513| if (global_settings.get_item_string("Dbus", "lxde", null) == "true")
# 514| {
# 515|-> Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
# 516| on_bus_aquired,
# 517| () => {},
Error: COMPILER_WARNING (CWE-697): [#def275]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala:515:457: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda17__gbus_name_lost_callback’ will never be NULL
# 515 | Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
# | ^
main.c:768:1: note: ‘____lambda17__gbus_name_lost_callback’ declared here
# 513| if (global_settings.get_item_string("Dbus", "lxde", null) == "true")
# 514| {
# 515|-> Bus.own_name (BusType.SESSION, "org.lxde.SessionManager", BusNameOwnerFlags.NONE,
# 516| on_bus_aquired,
# 517| () => {},
Error: COMPILER_WARNING (CWE-697): [#def276]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala:524:292: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda18__gbus_name_acquired_callback’ will never be NULL
# 524 | Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
# | ^
main.c:793:1: note: ‘____lambda18__gbus_name_acquired_callback’ declared here
# 522| {
# 523|
# 524|-> Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
# 525| on_gnome_bus_aquired,
# 526| () => {},
Error: COMPILER_WARNING (CWE-697): [#def277]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/main.vala:524:464: warning[-Waddress]: the comparison will always evaluate as ‘false’ for the address of ‘____lambda19__gbus_name_lost_callback’ will never be NULL
# 524 | Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
# | ^
main.c:811:1: note: ‘____lambda19__gbus_name_lost_callback’ declared here
# 522| {
# 523|
# 524|-> Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE,
# 525| on_gnome_bus_aquired,
# 526| () => {},
Error: COMPILER_WARNING (CWE-563): [#def278]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c:63:20: warning[-Wunused-variable]: ‘lxsession_menu_item_object_properties’ defined but not used
# 63 | static GParamSpec* lxsession_menu_item_object_properties[LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 61| LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES
# 62| };
# 63|-> static GParamSpec* lxsession_menu_item_object_properties[LXSESSION_MENU_ITEM_OBJECT_NUM_PROPERTIES];
# 64|
# 65| #define LXSESSION_TYPE_MENU_ITEM_GENERIC_OBJECT (lxsession_menu_item_generic_object_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def279]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c:91:20: warning[-Wunused-variable]: ‘lxsession_menu_object_properties’ defined but not used
# 91 | static GParamSpec* lxsession_menu_object_properties[LXSESSION_MENU_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 89| LXSESSION_MENU_OBJECT_NUM_PROPERTIES
# 90| };
# 91|-> static GParamSpec* lxsession_menu_object_properties[LXSESSION_MENU_OBJECT_NUM_PROPERTIES];
# 92|
# 93| #define LXSESSION_TYPE_MENU_GENERIC_OBJECT (lxsession_menu_generic_object_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def280]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c:107:20: warning[-Wunused-variable]: ‘lxsession_menu_generic_object_properties’ defined but not used
# 107 | static GParamSpec* lxsession_menu_generic_object_properties[LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 105| LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES
# 106| };
# 107|-> static GParamSpec* lxsession_menu_generic_object_properties[LXSESSION_MENU_GENERIC_OBJECT_NUM_PROPERTIES];
# 108| typedef void (*LxsessionMenuGenericObjectActionCallback) (gpointer user_data);
# 109|
Error: COMPILER_WARNING (CWE-563): [#def281]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c:124:20: warning[-Wunused-variable]: ‘lxsession_icon_object_properties’ defined but not used
# 124 | static GParamSpec* lxsession_icon_object_properties[LXSESSION_ICON_OBJECT_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 122| LXSESSION_ICON_OBJECT_NUM_PROPERTIES
# 123| };
# 124|-> static GParamSpec* lxsession_icon_object_properties[LXSESSION_ICON_OBJECT_NUM_PROPERTIES];
# 125| #define _g_free0(var) (var = (g_free (var), NULL))
# 126| #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
Error: CLANG_WARNING: [#def282]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.vala:196:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 194| if (this.notification != null)
# 195| {
# 196|-> this.notification.add_action (action, label, (n, a) =>
# 197| {
# 198| callback ();
Error: COMPILER_WARNING (CWE-843): [#def283]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.vala: scope_hint: In function ‘lxsession_icon_object_add_action’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.vala:196:58: warning[-Wincompatible-pointer-types]: passing argument 4 of ‘notify_notification_add_action’ from incompatible pointer type
# 196 | this.notification.add_action (action, label, (n, a) =>
# | ^~~~~~~~~~~~~
# | |
# | void (*)(NotifyNotification *, const gchar *, void *) {aka void (*)(NotifyNotification *, const char *, void *)}
/usr/include/libnotify/notify.h:27: included_from: Included from here.
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/notifications.c:29: included_from: Included from here.
/usr/include/libnotify/notification.h:216:85: note: expected ‘NotifyActionCallback’ {aka ‘void (*)(NotifyNotification *, char *, void *)’} but argument is of type ‘void (*)(NotifyNotification *, const gchar *, void *)’ {aka ‘void (*)(NotifyNotification *, const char *, void *)’}
# 216 | NotifyActionCallback callback,
# | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
# 194| if (this.notification != null)
# 195| {
# 196|-> this.notification.add_action (action, label, (n, a) =>
# 197| {
# 198| callback ();
Error: CPPCHECK_WARNING: [#def284]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def285]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:62:20: warning[-Wunused-variable]: ‘lxsession_option_properties’ defined but not used
# 62 | static GParamSpec* lxsession_option_properties[LXSESSION_OPTION_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# 60| LXSESSION_OPTION_NUM_PROPERTIES
# 61| };
# 62|-> static GParamSpec* lxsession_option_properties[LXSESSION_OPTION_NUM_PROPERTIES];
# 63| #define _g_free0(var) (var = (g_free (var), NULL))
# 64|
Error: COMPILER_WARNING (CWE-563): [#def286]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:89:20: warning[-Wunused-variable]: ‘lxsession_keymap_option_properties’ defined but not used
# 89 | static GParamSpec* lxsession_keymap_option_properties[LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 87| LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES
# 88| };
# 89|-> static GParamSpec* lxsession_keymap_option_properties[LXSESSION_KEYMAP_OPTION_NUM_PROPERTIES];
# 90| #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
# 91|
Error: COMPILER_WARNING (CWE-563): [#def287]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:106:20: warning[-Wunused-variable]: ‘lxsession_clipboard_option_properties’ defined but not used
# 106 | static GParamSpec* lxsession_clipboard_option_properties[LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 104| LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES
# 105| };
# 106|-> static GParamSpec* lxsession_clipboard_option_properties[LXSESSION_CLIPBOARD_OPTION_NUM_PROPERTIES];
# 107|
# 108| #define LXSESSION_TYPE_UPSTART_USER_SESSION_OPTION (lxsession_upstart_user_session_option_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def288]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:122:20: warning[-Wunused-variable]: ‘lxsession_upstart_user_session_option_properties’ defined but not used
# 122 | static GParamSpec* lxsession_upstart_user_session_option_properties[LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 120| LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES
# 121| };
# 122|-> static GParamSpec* lxsession_upstart_user_session_option_properties[LXSESSION_UPSTART_USER_SESSION_OPTION_NUM_PROPERTIES];
# 123|
# 124| #define LXSESSION_TYPE_XSETTINGS_OPTION (lxsession_xsettings_option_get_type ())
Error: COMPILER_WARNING (CWE-563): [#def289]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:138:20: warning[-Wunused-variable]: ‘lxsession_xsettings_option_properties’ defined but not used
# 138 | static GParamSpec* lxsession_xsettings_option_properties[LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 136| LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES
# 137| };
# 138|-> static GParamSpec* lxsession_xsettings_option_properties[LXSESSION_XSETTINGS_OPTION_NUM_PROPERTIES];
# 139|
# 140| #define LXSESSION_TYPE_LXSESSION_CONFIG_KEY_FILE (lxsession_lxsession_config_key_file_get_type ())
Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala: scope_hint: In function ‘lxsession_keymap_option_construct’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala:58:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘lxsession_option_construct(object_type, config)’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:63:39: note: in definition of macro ‘_g_free0’
/usr/lib64/glib-2.0/include/glibconfig.h:9: included_from: Included from here.
/usr/include/glib-2.0/glib/gtypes.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib/galloca.h:34: included_from: Included from here.
/usr/include/glib-2.0/glib.h:32: included_from: Included from here.
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala:53:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala:28:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib/gmacros.h:1243:31: note: in expansion of macro ‘_G_BOOLEAN_EXPR_IMPL’
/usr/include/glib-2.0/glib/gmacros.h:1244:43: note: in expansion of macro ‘_G_BOOLEAN_EXPR’
/usr/include/glib-2.0/glib/gmessages.h:664:9: note: in expansion of macro ‘G_LIKELY’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala:61:2: note: in expansion of macro ‘g_return_val_if_fail’
/usr/include/glib-2.0/glib.h:64: included_from: Included from here.
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.vala:61:2: note: in expansion of macro ‘g_return_val_if_fail’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/options.c:63:39: note: in definition of macro ‘_g_free0’
# 56| if (config.get_item_string("Keymap", "mode", null) == "user")
# 57| {
# 58|-> command = create_user_mode_command(config);
# 59| }
# 60| }
Error: CLANG_WARNING: [#def291]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/process.vala:27:2: warning[deadcode.DeadStores]: Value stored to '_command_size_' is never read
# 25| public void lxsession_spawn_command_line_async(string command_line)
# 26| {
# 27|-> string[] command = command_line.split_set(" ",0);
# 28|
# 29| try
Error: CLANG_WARNING: [#def292]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/process.vala:31:3: warning[deadcode.DeadStores]: Value stored to '_spawn_env_size_' is never read
# 29| try
# 30| {
# 31|-> string[] spawn_env = Environ.get ();
# 32| Pid child_pid;
# 33|
Error: CPPCHECK_WARNING: [#def293]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-563): [#def294]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.c:124:20: warning[-Wunused-variable]: ‘lxsession_razor_qt_config_key_file_properties’ defined but not used
# 124 | static GParamSpec* lxsession_razor_qt_config_key_file_properties[LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 122| LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES
# 123| };
# 124|-> static GParamSpec* lxsession_razor_qt_config_key_file_properties[LXSESSION_RAZOR_QT_CONFIG_KEY_FILE_NUM_PROPERTIES];
# 125|
# 126| struct _LxsessionLxsessionConfig {
Error: COMPILER_WARNING (CWE-704): [#def295]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_set_session_name’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:28:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 26|
# 27| /* Session identification */
# 28|-> public string session_name { get; set; default = "LXDE";}
# 29| public string desktop_env_name { get; set; default = "LXDE";}
# 30|
Error: COMPILER_WARNING (CWE-704): [#def296]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_set_desktop_env_name’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:29:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 27| /* Session identification */
# 28| public string session_name { get; set; default = "LXDE";}
# 29|-> public string desktop_env_name { get; set; default = "LXDE";}
# 30|
# 31| /* Settings db */
Error: CLANG_WARNING: [#def297]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:194:3: warning[deadcode.DeadStores]: Value stored to '_list_size_' is never read
# 192| if (support_db.contains(key1))
# 193| {
# 194|-> string[] list = support_db[key1].split_set(";",0);
# 195| if (key2 == null)
# 196| {
Error: COMPILER_WARNING (CWE-704): [#def298]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_key_file_set_desktop_config_path’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:423:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 421| /* Settings locations */
# 422| public KeyFile kf = new KeyFile();
# 423|-> public string desktop_config_path { get; set; default = null;}
# 424| public string desktop_config_home_path { get; set; default = null;}
# 425| public GLib.File desktop_file ;
Error: COMPILER_WARNING (CWE-704): [#def299]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala: scope_hint: In function ‘lxsession_lxsession_config_key_file_set_desktop_config_home_path’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:424:12: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 422| public KeyFile kf = new KeyFile();
# 423| public string desktop_config_path { get; set; default = null;}
# 424|-> public string desktop_config_home_path { get; set; default = null;}
# 425| public GLib.File desktop_file ;
# 426| public GLib.File home_desktop_file ;
Error: CLANG_WARNING: [#def300]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:602:2: warning[deadcode.DeadStores]: Value stored to '_copy_value_size_' is never read
# 600| public string[] read_keyfile_string_list_value (KeyFile keyfile, string kf_categorie, string kf_key1, string? kf_key2, string[] default_value)
# 601| {
# 602|-> string[] copy_value = null;
# 603| string[] return_value = null;
# 604| try
Error: CLANG_WARNING: [#def301]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:603:2: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 601| {
# 602| string[] copy_value = null;
# 603|-> string[] return_value = null;
# 604| try
# 605| {
Error: CLANG_WARNING: [#def302]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:608:4: warning[deadcode.DeadStores]: Value stored to '__tmp0__size_' is never read
# 606| if (kf_key2 == null)
# 607| {
# 608|-> copy_value = keyfile.get_string_list (kf_categorie, kf_key1);
# 609| }
# 610| else
Error: CLANG_WARNING: [#def303]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:608:4: warning[deadcode.DeadStores]: Value stored to '_copy_value_size_' is never read
# 606| if (kf_key2 == null)
# 607| {
# 608|-> copy_value = keyfile.get_string_list (kf_categorie, kf_key1);
# 609| }
# 610| else
Error: CLANG_WARNING: [#def304]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:612:4: warning[deadcode.DeadStores]: Value stored to '__tmp4__size_' is never read
# 610| else
# 611| {
# 612|-> copy_value = keyfile.get_string_list (kf_categorie, kf_key1 + "/" + kf_key2);
# 613| }
# 614| }
Error: CLANG_WARNING: [#def305]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:612:4: warning[deadcode.DeadStores]: Value stored to '_copy_value_size_' is never read
# 610| else
# 611| {
# 612|-> copy_value = keyfile.get_string_list (kf_categorie, kf_key1 + "/" + kf_key2);
# 613| }
# 614| }
Error: CLANG_WARNING: [#def306]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:620:2: warning[deadcode.DeadStores]: Value stored to '_tmp15__length1' is never read
# 618| }
# 619|
# 620|-> if (copy_value == null)
# 621| {
# 622| return_value = default_value;
Error: CLANG_WARNING: [#def307]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:622:3: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 620| if (copy_value == null)
# 621| {
# 622|-> return_value = default_value;
# 623| }
# 624| else
Error: CLANG_WARNING: [#def308]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:626:3: warning[deadcode.DeadStores]: Value stored to '_tmp17__length1' is never read
# 624| else
# 625| {
# 626|-> if (default_value != copy_value)
# 627| {
# 628| return_value = copy_value;
Error: CLANG_WARNING: [#def309]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:628:4: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 626| if (default_value != copy_value)
# 627| {
# 628|-> return_value = copy_value;
# 629| }
# 630| else
Error: CLANG_WARNING: [#def310]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/settings.vala:632:4: warning[deadcode.DeadStores]: Value stored to '_return_value_size_' is never read
# 630| else
# 631| {
# 632|-> return_value = default_value;
# 633| }
# 634| }
Error: COMPILER_WARNING (CWE-563): [#def311]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/utils.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/utils.c:68:20: warning[-Wunused-variable]: ‘lxsession_lx_signals_properties’ defined but not used
# 68 | static GParamSpec* lxsession_lx_signals_properties[LXSESSION_LX_SIGNALS_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 66| LXSESSION_LX_SIGNALS_NUM_PROPERTIES
# 67| };
# 68|-> static GParamSpec* lxsession_lx_signals_properties[LXSESSION_LX_SIGNALS_NUM_PROPERTIES];
# 69| enum {
# 70| LXSESSION_LX_SIGNALS_UPDATE_WINDOW_MANAGER_SIGNAL,
Error: CLANG_WARNING: [#def312]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/utils.vala:73:3: warning[deadcode.DeadStores]: Value stored to '_system_config_dirs_size_' is never read
# 71| else
# 72| {
# 73|-> string[] system_config_dirs = Environment.get_system_config_dirs ();
# 74| string config_system_location = null;
# 75| string path_system_config_file = null;
Error: COMPILER_WARNING (CWE-843): [#def313]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/utils.vala: scope_hint: In function ‘lxsession_get_config_path’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsession/utils.vala:73:19: warning[-Wincompatible-pointer-types]: assignment to ‘gchar **’ {aka ‘char **’} from incompatible pointer type ‘const gchar * const*’ {aka ‘const char * const*’}
# 73 | string[] system_config_dirs = Environment.get_system_config_dirs ();
# | ^
# 71| else
# 72| {
# 73|-> string[] system_config_dirs = Environment.get_system_config_dirs ();
# 74| string config_system_location = null;
# 75| string path_system_config_file = null;
Error: COMPILER_WARNING (CWE-563): [#def314]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/main.c:61:20: warning[-Wunused-variable]: ‘main_properties’ defined but not used
# 61 | static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~
# 59| MAIN_NUM_PROPERTIES
# 60| };
# 61|-> static GParamSpec* main_properties[MAIN_NUM_PROPERTIES];
# 62| #define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))
# 63| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: COMPILER_WARNING: [#def315]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/main.c:89:27: warning[-Wunused-const-variable=]: ‘MAIN_option_entries’ defined but not used
# 89 | static const GOptionEntry MAIN_option_entries[3] = {{"file", 'f', (gint) 0, G_OPTION_ARG_STRING, &main_file, "path of the configuration file", "NAME"}, {"persistent", 'p', (gint) 0, G_OPTION_ARG_NONE, &main_persistent, "reload configuration on file change", NULL}, {NULL}};
# | ^~~~~~~~~~~~~~~~~~~
# 87| static GType main_get_type_once (void);
# 88|
# 89|-> static const GOptionEntry MAIN_option_entries[3] = {{"file", 'f', (gint) 0, G_OPTION_ARG_STRING, &main_file, "path of the configuration file", "NAME"}, {"persistent", 'p', (gint) 0, G_OPTION_ARG_NONE, &main_persistent, "reload configuration on file change", NULL}, {NULL}};
# 90|
# 91| static gint
Error: CLANG_WARNING: [#def316]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/main.vala:19:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 17| * MA 02110-1301, USA.
# 18| */
# 19|-> public class Main: GLib.Object
# 20| {
# 21| static bool persistent = false;
Error: COMPILER_WARNING (CWE-563): [#def317]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c: scope_hint: In function ‘merge_xrdb’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c:66:23: warning[-Wunused-but-set-variable]: variable ‘w’ set but not used
# 66 | int stdi, status, w;
# | ^
# 64| gchar* argv[] = { "xrdb", "-merge", "-", NULL };
# 65| GPid pid;
# 66|-> int stdi, status, w;
# 67| if( g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_SEARCH_PATH,
# 68| NULL, NULL, &pid, &stdi, NULL, NULL, NULL ) )
Error: CLANG_WARNING: [#def318]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c:72:13: warning[deadcode.DeadStores]: Value stored to 'w' is never read
# 70| if (len < 0)
# 71| {
# 72|-> w = write( stdi, content, strlen(content));
# 73| }
# 74| else
Error: CLANG_WARNING: [#def319]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c:76:13: warning[deadcode.DeadStores]: Value stored to 'w' is never read
# 74| else
# 75| {
# 76|-> w = write( stdi, content, len);
# 77| }
# 78| close(stdi);
Error: COMPILER_WARNING (CWE-563): [#def320]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c: scope_hint: In function ‘create_xsettings_managers’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c:268:25: warning[-Wunused-but-set-variable]: variable ‘screen’ set but not used
# 268 | Screen *screen;
# | ^~~~~~
# 266| for( i = 0; i < n_screens; ++i )
# 267| {
# 268|-> Screen *screen;
# 269| screen = ScreenOfDisplay( dpy, i );
# 270| managers [i] = xsettings_manager_new ( dpy, i, terminate_cb, &terminated);
Error: CLANG_WARNING: [#def321]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/settings-daemon.c:269:3: warning[deadcode.DeadStores]: Value stored to 'screen' is never read
# 267| {
# 268| Screen *screen;
# 269|-> screen = ScreenOfDisplay( dpy, i );
# 270| managers [i] = xsettings_manager_new ( dpy, i, terminate_cb, &terminated);
# 271| if(!managers [i])
Error: CLANG_WARNING: [#def322]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/xsettings-common.c:162:7: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 160| while (list)
# 161| {
# 162|-> XSettingsList *next = list->next;
# 163|
# 164| xsettings_setting_free (list->setting);
Error: GCC_ANALYZER_WARNING (CWE-457): [#def323]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/xsettings-common.c: scope_hint: In function ‘xsettings_list_free’
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/lxsettings-daemon/xsettings-common.c:162:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*list.next’
# 160| while (list)
# 161| {
# 162|-> XSettingsList *next = list->next;
# 163|
# 164| xsettings_setting_free (list->setting);
Error: COMPILER_WARNING (CWE-563): [#def324]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/xdg-autostart/main.c: scope_hint: At top level
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/xdg-autostart/main.c:61:20: warning[-Wunused-variable]: ‘lxsession_main_properties’ defined but not used
# 61 | static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# | ^~~~~~~~~~~~~~~~~~~~~~~~~
# 59| LXSESSION_MAIN_NUM_PROPERTIES
# 60| };
# 61|-> static GParamSpec* lxsession_main_properties[LXSESSION_MAIN_NUM_PROPERTIES];
# 62| #define _g_option_context_free0(var) ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
# 63| #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
Error: CLANG_WARNING: [#def325]
lxsession-0.5.5_20230917gite0fffa66-build/lxsession-0.5.5-20230917gite0fffa66/lxsession/xdg-autostart/main.vala:21:2: warning[deadcode.DeadStores]: Value stored to 'self' is never read
# 19| namespace Lxsession
# 20| {
# 21|-> public class Main: GLib.Object
# 22| {
# 23| static string desktop_environnement = null;
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-37.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | lxsession-0.5.5^20230917gite0fffa66-4.fc41 |
store-results-to | /tmp/tmpgm0gowud/lxsession-0.5.5^20230917gite0fffa66-4.fc41.tar.xz |
time-created | 2024-07-03 16:20:14 |
time-finished | 2024-07-03 16:22:26 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpgm0gowud/lxsession-0.5.5^20230917gite0fffa66-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpgm0gowud/lxsession-0.5.5^20230917gite0fffa66-4.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |